safeError is an error that can redact its message.
| 175 | |
| 176 | // safeError is an error that can redact its message. |
| 177 | type safeError struct { |
| 178 | err error |
| 179 | redacted error |
| 180 | callers []uintptr |
| 181 | } |
| 182 | |
| 183 | func (e *safeError) Error() string { return e.err.Error() } |
| 184 | func (e *safeError) Redact() string { return e.redacted.Error() } |
nothing calls this directly
no outgoing calls
no test coverage detected