pub fn format_error_pretty(error: &Error, input: &str) -> String