pub fn format_error(err: &dyn Display) -> String
Format an error for stderr output, respecting the current error format.