Skip to main content

redact_error

Function redact_error 

Source
pub fn redact_error(e: &Error) -> String
Expand description

Convenience: format an anyhow::Error with {:#} and redact the result in one call. Use at the boundary of every error-to-artifact path (summary.error_message = ..., log::error!(... e ...)).