Skip to main content

sanitize_error

Macro sanitize_error 

Source
macro_rules! sanitize_error {
    ($error:expr) => { ... };
}
Expand description

Sanitizes an error message based on the unsafe-debug feature flag

  • With unsafe-debug: Returns the original error message
  • Without unsafe-debug: Returns a sanitized version with sensitive data redacted