Skip to content

Handle ExitPromptError gracefully on Ctrl+C#565

Merged
sorenlouv merged 1 commit intomainfrom
claude/practical-kirch
Mar 18, 2026
Merged

Handle ExitPromptError gracefully on Ctrl+C#565
sorenlouv merged 1 commit intomainfrom
claude/practical-kirch

Conversation

@sorenlouv
Copy link
Copy Markdown
Owner

Summary

  • Catch ExitPromptError from @inquirer/core when the user presses Ctrl+C during interactive prompts
  • Instead of showing a scary "unhandled error" message with a stack trace, the tool now exits cleanly

Test plan

  • Run npm start -- --branch 6.1 --repo backport-org/backport-demo --all and press Ctrl+C during a prompt — should exit silently
  • Normal error paths still display their messages correctly

🤖 Generated with Claude Code

Catch the ExitPromptError thrown by @inquirer/core when the user
presses Ctrl+C during interactive prompts, instead of displaying
a scary unhandled error message.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sorenlouv sorenlouv merged commit 631f23a into main Mar 18, 2026
3 checks passed
@sorenlouv sorenlouv deleted the claude/practical-kirch branch March 18, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant