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{})
| 96 | // The message is formatted as per redact.Sprintf, |
| 97 | // to separate safe and unsafe strings for Sentry reporting. |
| 98 | func WithMessagef(err error, format string, args ...interface{}) error { |
| 99 | return errutil.WithMessagef(err, format, args...) |
| 100 | } |
| 101 | |
| 102 | // Wrap wraps an error with a message prefix. |
| 103 | // A stack trace is retained. |
nothing calls this directly
no test coverage detected
searching dependent graphs…