Skip to main content

exit_code_from_error

Function exit_code_from_error 

Source
pub fn exit_code_from_error(err: &Error) -> u8
Expand description

Determine the exit code from an anyhow::Error.

If the error is a CliError, returns its category’s exit code. Otherwise, infers the category from the error message.