pub fn format_error(err: &Error, use_color: bool) -> String
Format error with colored output (if enabled)