Skip to content

refactor(cli): standardize error message handling - #1761

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/shared-error-message-recovery
Nov 25, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/shared-error-message-recovery

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Keep CLI and download failures consistent with the shared errorMessage() helper. Errors without a message now display Unknown error.

@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Mechanical rename and import consolidation with unchanged UNKNOWN_ERROR fallback behavior; no auth or data-path logic changes.

Overview
Renames the shared getErrorCause helper to errorMessage in src/utils/errors.mts and updates imports and call sites across commands (fix, logout, Bazel manifest flows, wrapper postinstall), API/SDK/config utilities, Coana release, and SEA build/download code so user-facing logs and CResult.cause strings use one name.

download-bytes.mts drops its local stringifier and imports the shared helper; formatErrorWithDetail avoids shadowing by using a detail local. Tests that mocked getErrorCause now mock errorMessage instead.

Reviewed by Cursor Bugbot for commit 5d072f2. Configure here.

@jdalton
John-David Dalton (jdalton) force-pushed the fix/shared-error-message-recovery branch from 5d072f2 to b2ccc74 Compare November 25, 2026 14:45
@jdalton
John-David Dalton (jdalton) merged commit 025e1e9 into v1.x Nov 25, 2026
25 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/shared-error-message-recovery branch November 25, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants