fix(build-cli): preserve error exits in quiet mode - #28162
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Hi! Thank you for opening this PR. Want me to review it? Based on the diff (52 lines, 3 files), I've queued these reviewers:
How this works
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bundle size comparisonBase commit: could not be determined; will be reported when the comparison runs Pending — |
🔭 PR Review Fleet ReportNote This report is generated by an experimental AI review fleet and is provided as a beta feature. Findings are a starting point for discussion, not a gate. Use your own judgement. Verdict: 0 Disastrous, 1 Dangerous, 1 Disagreeable Findings
|
There was a problem hiding this comment.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Description
Fixes AB#74372.
BaseCommand.error()previously skipped oclif's error handling when--quietwas set. As a result, fatal errors returned normally instead of throwing or applying the requested exit code, allowing commands to continue after a failure.This change always delegates errors to oclif exactly once while retaining the existing string formatting. Other informational and warning output remains suppressed by
--quiet.A dedicated hidden test command immediately reports an intentional error with exit code 1. Its focused regression test invokes the command with
--quietand verifies that oclif still returns the expected error and exit code.Reviewer Guidance
The review process is outlined in the pull request guidelines.
Please confirm that fatal errors should preserve oclif's throw and exit behavior regardless of the logging verbosity setting.