Add Unwrap() to printedError for proper error chain support#15
Add Unwrap() to printedError for proper error chain support#15JulienTant merged 2 commits intomainfrom
Conversation
Without Unwrap(), errors.Is() and errors.As() cannot see through printedError to match wrapped controller error types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR adds an Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Unwrap()method toprintedErrorsoerrors.Is()anderrors.As()can see through to wrapped controller error typesprintedErrorwrapping behavior (internal/cli/errors_test.go)fmt.Errorfwrapping (internal/controller/errors_test.go)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit