format

Function format 

Source
pub fn format(error: impl AsRef<dyn Error>) -> String
Expand description

Format an error, including its chain of sources.

Always use this when displaying an error, especially anyhow::Error.