pub fn format_error(error: &Error) -> String