Skip to content

BREAKING: exit on all types of configuration errors in watch mode - #527

Merged
RyanZim merged 3 commits into
masterfrom
ryan/better-error-handling
Aug 20, 2026
Merged

BREAKING: exit on all types of configuration errors in watch mode #527
RyanZim merged 3 commits into
masterfrom
ryan/better-error-handling

Conversation

@RyanZim

@RyanZim RyanZim commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

We don't want to exit watch mode if there's a processing error, but a configuration error on initial run should exit. Some of these cases did exit, but with an additional, unhelpful error message, since we proceeded beyond the error condition.

@RyanZim RyanZim added this to the v12 milestone Aug 20, 2026
@RyanZim
RyanZim requested a balanced review from Copilot August 20, 2026 18:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates watch mode to exit on initial configuration errors while continuing after file-processing errors.

Changes:

  • Makes error termination explicit via dontExit.
  • Adds watch-mode coverage for configuration failures.
  • Preserves watch mode after processing errors.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
index.js Refines error handling and watch-mode exit behavior.
test/error.js Tests configuration errors in normal and watch modes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread index.js Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@RyanZim
RyanZim merged commit 0d8803f into master Aug 20, 2026
6 checks passed
@RyanZim
RyanZim deleted the ryan/better-error-handling branch August 20, 2026 18:22
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.

2 participants