Skip to content

fix(cli): exit non-zero when inspect or watch fails - #591

Merged
pradeeban merged 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/inspect-watch-exit-code
Oct 5, 2026
Merged

pradeeban merged 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/inspect-watch-exit-code

Conversation

@bhuvan-somisetty

Copy link
Copy Markdown

Fixes #590

inspect and watch now return a status and the CLI exits 1 on failure, same as validate. Covers invalid GraphML (text and --json) and passing a file to watch.

Added tests for all three cases.

@bhuvan-somisetty

Copy link
Copy Markdown
Author

Small fix for #590, inspect and watch now exit 1 on errors. PTAL when you get a chance @pradeeban

@pradeeban

Copy link
Copy Markdown
Member

Pls resolve the merge conflict, @bhuvan-somisetty

@pradeeban
pradeeban marked this pull request as draft October 5, 2026 19:43
@bhuvan-somisetty
bhuvan-somisetty force-pushed the fix/inspect-watch-exit-code branch from 9aa827a to 895f465 Compare October 5, 2026 20:03
@pradeeban
pradeeban marked this pull request as ready for review October 5, 2026 20:34
@bhuvan-somisetty
bhuvan-somisetty force-pushed the fix/inspect-watch-exit-code branch from 895f465 to 183619b Compare October 5, 2026 20:52
@pradeeban
pradeeban merged commit 2824ff3 into ControlCore-Project:dev Oct 5, 2026
10 of 14 checks passed
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