WrapError wraps an error for the sake of showing a stack trace at the top level the go-errors package, for some reason, does not return nil when you try to wrap a non-error, so we're just doing it here
(err error)
| 6 | // the go-errors package, for some reason, does not return nil when you try to wrap |
| 7 | // a non-error, so we're just doing it here |
| 8 | func WrapError(err error) error { |
| 9 | if err == nil { |
| 10 | return err |
| 11 | } |
| 12 | |
| 13 | return errors.Wrap(err, 0) |
| 14 | } |
no outgoing calls
no test coverage detected