Function format_error

Source
pub fn format_error(e: Error) -> String
Expand description

Prints anyhow errors correctly in the Phink style

§Argument

  • e: The anyhow::Error to pretty-print

returns: String

§Example

eprintln!("{}", format_error(e));