fix(wtp add): improve error messages for remove-then-add and composite errors#92
fix(wtp add): improve error messages for remove-then-add and composite errors#920Delta wants to merge 1 commit intosatococoa:mainfrom
Conversation
…e errors - Collect all applicable 'already exists' errors (path, branch, worktree, multiple remotes) and return as CompositeWorktreeError - Show 'Error command:' with full git command and exit status instead of duplicate Technical sections - Deduplicate solution list and single shared 'Original error' when multiple errors share same git error - Add E2E test for wtp remove then wtp add -b same branch
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR refactors error handling in the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
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 unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Why
After `wtp remove `, running `wtp add -b ` fails due to the branch still existing, but the message only said "destination path already exists," which was misleading.
Testing
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests