WithAssertionFailure decorates the error with an assertion failure marker. This is not intended to be used directly (see AssertionFailed() for further decoration). Detail is shown: - when formatting with `%+v`. - in Sentry reports.
(err error)
| 32 | // - when formatting with `%+v`. |
| 33 | // - in Sentry reports. |
| 34 | func WithAssertionFailure(err error) error { |
| 35 | if err == nil { |
| 36 | return nil |
| 37 | } |
| 38 | return &withAssertionFailure{cause: err} |
| 39 | } |
| 40 | |
| 41 | // HasAssertionFailure returns true if the error or any of its causes |
| 42 | // is an assertion failure annotation. |
no outgoing calls
searching dependent graphs…