Skip to main content

runtime_json_error

Function runtime_json_error 

Source
pub fn runtime_json_error(message: &str, exit: u8) -> String
Expand description

The json_error line of a runtime error that ends a run with exit, message being what follows error: on stderr. Its code is the message’s leading CODE: (STALE_SOURCE: …), else USAGE for an exit 2 and ERROR for any other.