Skip to main content

render_error

Function render_error 

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

Render any top-level error to stderr in the error:/help: style and return the exit code the process should use.

CliError values carry their own hint and exit code; every other error renders as a bare error: line with EXIT_FAILURE.