pub fn to_string(e: &(dyn Error + 'static)) -> StringExpand description
A helper function to format an error with its source chain.
This function works with both &Error and Box<dyn Error>. When passing a boxed error,
make sure to dereference it using &*e.