Skip to main content

exit_with

Function exit_with 

Source
pub fn exit_with(err: Error) -> !
Expand description

Print err the app’s way — the program name, the message (Display, not the Debug dump) — and exit 1. A plain Result main would print Error: {err:?} instead.