Errorf creates a new error with the given message. You can use it as a drop-in replacement for fmt.Errorf() to provide descriptive errors in return values.
(format string, a ...interface{})
| 143 | // as a drop-in replacement for fmt.Errorf() to provide descriptive |
| 144 | // errors in return values. |
| 145 | func Errorf(format string, a ...interface{}) *Error { |
| 146 | return Wrap(fmt.Errorf(format, a...), 1) |
| 147 | } |
| 148 | |
| 149 | // Error returns the underlying error's message. |
| 150 | func (err *Error) Error() string { |
searching dependent graphs…