Wrapf wraps an error with an additional formatted message.
(err error, format string, args ...interface{})
| 76 | |
| 77 | // Wrapf wraps an error with an additional formatted message. |
| 78 | func Wrapf(err error, format string, args ...interface{}) error { |
| 79 | if err == nil { |
| 80 | err = errors.New("") |
| 81 | } |
| 82 | |
| 83 | message := fmt.Sprintf(format, args...) |
| 84 | |
| 85 | return newWrappedError(err, message) |
| 86 | } |
| 87 | |
| 88 | func Join(errs ...error) error { |
| 89 | return goerrors.Join(errs...) |
no test coverage detected