Wrapf wraps *errp with the given formatted message if *errp is not nil.
(errp *error, format string, args ...any)
| 10 | |
| 11 | // Wrapf wraps *errp with the given formatted message if *errp is not nil. |
| 12 | func Wrapf(errp *error, format string, args ...any) { |
| 13 | if *errp != nil { |
| 14 | *errp = fmt.Errorf("%s: %w", fmt.Sprintf(format, args...), *errp) |
| 15 | } |
| 16 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…