Skip to main content

redact_error

Function redact_error 

Source
pub(super) fn redact_error(error: Error) -> Error
Expand description

Omits the contents of errors at, above or below a sensitive field.

A value assigned above a sensitive field, such as a scalar given for its whole section, can carry the secret into the reported value. Every other error keeps its detail, so the operator still sees the expected type.