Skip to main content

exit_code

Function exit_code 

Source
pub fn exit_code(err: &Error) -> i32
Expand description

Map an Error to the standard process exit code documented in docs/reference/exit-codes.md. All Cognitora binaries call this from their main() so the matrix is enforced uniformly.