pub fn fmt_err(f: &mut dyn Write, e: &dyn Error) -> Result<(), Error>
Writes an error and its source chain.