Commit df08b35
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 9b86760 commit df08b35
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
0 commit comments