HandledWithMessagef is like HandledWithMessagef except the message is formatted.
(err error, format string, args ...interface{})
| 60 | // HandledWithMessagef is like HandledWithMessagef except the message |
| 61 | // is formatted. |
| 62 | func HandledWithMessagef(err error, format string, args ...interface{}) error { |
| 63 | if err == nil { |
| 64 | return nil |
| 65 | } |
| 66 | return &barrierErr{maskedErr: err, smsg: redact.Sprintf(format, args...)} |
| 67 | } |
| 68 | |
| 69 | // barrierErr is a leaf error type. It encapsulates a chain of |
| 70 | // original causes, but these causes are hidden so that they inhibit |
no outgoing calls
searching dependent graphs…