WrapWithDepth is like Wrap except the depth to capture the stack trace is configurable. The the doc of `Wrap()` for more details.
(depth int, err error, msg string)
| 118 | // trace is configurable. |
| 119 | // The the doc of `Wrap()` for more details. |
| 120 | func WrapWithDepth(depth int, err error, msg string) error { |
| 121 | return errutil.WrapWithDepth(depth+1, err, msg) |
| 122 | } |
| 123 | |
| 124 | // Wrapf wraps an error with a formatted message prefix. A stack |
| 125 | // trace is also retained. If the format is empty, no prefix is added, |
no test coverage detected
searching dependent graphs…