Skip to content

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

Open
John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
fix/shared-error-message-recovery
Open

John-David Dalton (jdalton) wants to merge 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.

This branch has not been deployed

No deployments
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.

1 participant