Commit 84284c6
fix(cortex-cli): exit with non-zero code on JSON parse failure in import command
Fixes bounty issue #1536
The import command was printing an error message when encountering
malformed JSON but exiting with code 0. This fix ensures the process
exits with code 1 when JSON parsing fails, allowing scripts and CI
pipelines to properly detect the error condition.1 parent 5579873 commit 84284c6
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
0 commit comments