1 should be for unknow errors which can be raised anywhere in the code, in an unexpected place. Ex. parsing a bad JSON or YAML file.
For the moment, we do not want to catch those exceptions for easier debugging and when the exception is not caught, the app exits with code 1, so for other error codes, should start at 2. (0 is success).
1
should be for unknow errors which can be raised anywhere in the code, in an unexpected place. Ex. parsing a bad JSON or YAML file. For the moment, we do not want to catch those exceptions for easier debugging and when the exception is not caught, the app exits with code1
, so for other error codes, should start at2
. (0
is success).ExitCode
enum.