You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Gyro CLI always exits with '0' even if there's an error.
To Reproduce
Give a wrong credential file in init.gyro, and run gyro up.
Expected behavior
Gyro exited with '1' previously.
Additional context
After gyro cli refactored with picocli, exception is handled by commandLine.setExecutionExceptionHandler(Gyro::invalidUserInput); in Gyro#init(), which always returns the status code, 2, but then it is even suppressed by Gyro#run().
Fixes should match the exit codes that are declared in the catch clauses in Gyro#main() function.
Also the catch clauses in main should be removed if they are not used any more.
The text was updated successfully, but these errors were encountered:
Describe the bug
Gyro CLI always exits with '0' even if there's an error.
To Reproduce
Give a wrong credential file in
init.gyro
, and rungyro up
.Expected behavior
Gyro exited with '1' previously.
Additional context
After gyro cli refactored with picocli, exception is handled by
commandLine.setExecutionExceptionHandler(Gyro::invalidUserInput);
inGyro#init()
, which always returns the status code,2
, but then it is even suppressed byGyro#run()
.Fixes should match the exit codes that are declared in the catch clauses in
Gyro#main()
function.Also the catch clauses in main should be removed if they are not used any more.
The text was updated successfully, but these errors were encountered: