Commit 587d8fd
committed
fix(cli): set exitCode=1 when schema check fails with no permission issues
Previously, when handleSchemaIssues threw and no permission issues were
detected, totalFound was 0 and the command reported 'No issues found'
despite the schema check failure. Now anyFailed is checked alongside
totalFound to ensure failures are always surfaced with a non-zero exit.1 parent 2dcf852 commit 587d8fd
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
345 | 346 | | |
346 | | - | |
| 347 | + | |
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
354 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
355 | 361 | | |
356 | 362 | | |
357 | 363 | | |
358 | | - | |
| 364 | + | |
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
| |||
0 commit comments