Skip to content

Commit 6092677

Browse files
committed
fix: restore throw error in run command catch block
1 parent 7bb5c29 commit 6092677

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.changeset/gentle-gifts-tell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
SDK: Improved API error messages by parsing server JSON responses instead of using HTTP status text. Removed try/catch from whoami so network errors propagate instead of being silently treated as "not authenticated". Deduplicated error handling into shared helpers. Removed unused workflowId parameter.
77

8-
CLI: Auth failures now show specific error messages (e.g., "Invalid API key" vs generic "Authentication failed"). Suppressed duplicate stack traces on error exit.
8+
CLI: Auth failures now show specific error messages (e.g., "Invalid API key" vs generic "Authentication failed").

packages/cli/src/cli/cmd/run/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,6 @@ export default new Command()
192192
if (args.sound) {
193193
await playSound("failure");
194194
}
195-
process.exit(1);
195+
throw error;
196196
}
197197
});

0 commit comments

Comments
 (0)