Skip to main content

display_error

Function display_error 

Source
pub fn display_error(error: &CliError)
Expand description

Display a CLI error and exit with status code 1.

For errors that carry source positions (parse, validation, typecheck), emits rustc-style output with a caret under the offending token via annotate_snippets. Other errors fall back to plain Display. The optional CliError::hint is appended in either path.