Repository navigation
Conversation
Several tool create/install/login failure paths raised a bare SystemExit, whose code None is reported as exit status 0, so scripts and CI saw success after a failed command. Use SystemExit(1) consistently, matching the other failure paths in the same module. Strengthen two tests to assert code 1. Fixes crewAIInc#9763
Strix Security Review✅ No open security findings. PR summary: The CLI's tool create/install/login failure paths raised a bare `SystemExit`, whose `None` code exits 0, so CI and scripts saw success after a failed command. This PR raises `SystemExit(1)` on those paths and strengthens two tests to assert the non-zero code. Review summaryThe diff only converts seven bare Because several of those branches sit inside methods that build the tool-install/ Ruled out (4)
Review 1 on this PR · Reviewed by Strix |
Fixes #9763.
Several tool create/install/login failure paths raised a bare SystemExit, whose code None is reported as exit status 0, so scripts and CI saw success after a failed command.
Uses SystemExit(1) consistently, matching the other failure paths in the same module. Strengthens two tests to assert code 1.