wrap returns an error satisfying errors.Is for both sentinel and underlying, using Go 1.20+ multi-%w support.
(sentinel, underlying error)
| 111 | // wrap returns an error satisfying errors.Is for both sentinel and |
| 112 | // underlying, using Go 1.20+ multi-%w support. |
| 113 | func wrap(sentinel, underlying error) error { |
| 114 | return fmt.Errorf("%w: %w", sentinel, underlying) |
| 115 | } |
no outgoing calls
no test coverage detected