is_safe_error

Function is_safe_error 

Source
pub fn is_safe_error(e: &Error) -> bool
Expand description

Check if an error should be shown to the client (for known safe errors)

Some errors are safe to show (like validation errors), while others should be sanitized (like database errors)