Wrap wraps an error with a message prefix. A stack trace is retained. Note: the prefix string is assumed to not contain PII and is included in Sentry reports. Use errors.Wrapf(err, "%s", ) for errors strings that may contain PII information. Detail output: - original error message +
(err error, msg string)
| 102 | // - stack trace and message via `errors.GetSafeDetails()`. |
| 103 | // - stack trace and message in Sentry reports. |
| 104 | func Wrap(err error, msg string) error { |
| 105 | return WrapWithDepth(1, err, msg) |
| 106 | } |
| 107 | |
| 108 | // WrapWithDepth is like Wrap except the depth to capture the stack |
| 109 | // trace is configurable. |
nothing calls this directly
no test coverage detected
searching dependent graphs…