Skip to main content

exit_code_for_error

Function exit_code_for_error 

Source
pub fn exit_code_for_error(err: &(dyn Error + 'static)) -> i32
Expand description

Map an error to a specific exit code by downcasting to ApiError.