Skip to main content

format_error

Function format_error 

Source
pub fn format_error(error: &Error, format: OutputFormat) -> String
Expand description

Formats an error for output.

When format is JSON, returns a structured error object. When format is Text, returns the error message string.