wrap returns an error annotating err with a stack trace at the point Wrap is called, and the supplied message. If err is nil, Wrap returns nil.
(err error, message string)
| 27 | // at the point Wrap is called, and the supplied message. |
| 28 | // If err is nil, Wrap returns nil. |
| 29 | func wrap(err error, message string) error { |
| 30 | if err == nil { |
| 31 | return nil |
| 32 | } |
| 33 | return &withMessage{ |
| 34 | cause: err, |
| 35 | msg: message, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | var errUseOfClosedNetworkConnection = errors.New("use of closed network connection") |
| 40 |
no outgoing calls
no test coverage detected
searching dependent graphs…