Skip to main content

error_code

Function error_code 

Source
pub fn error_code(err: &Error) -> Option<&'static str>
Expand description

The stable RIVET_* error code for a failure, if one was tagged via CodedError anywhere in the anyhow context chain. main surfaces it as the JSON code field and a [CODE] prefix on the text error line.