WithMessagef annotates err with the format specifier. If err is nil, WithMessagef returns nil. The message is formatted as per redact.Sprintf, to separate safe and unsafe strings for Sentry reporting.
(err error, format string, args ...interface{})
| 35 | // The message is formatted as per redact.Sprintf, |
| 36 | // to separate safe and unsafe strings for Sentry reporting. |
| 37 | func WithMessagef(err error, format string, args ...interface{}) error { |
| 38 | if err == nil { |
| 39 | return nil |
| 40 | } |
| 41 | return &withPrefix{ |
| 42 | cause: err, |
| 43 | prefix: redact.Sprintf(format, args...), |
| 44 | } |
| 45 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…