Closed dop251 closed 1 year ago
Go 1.13 introduced an error wrapping mechanism that is similar, but incompatible with pkg/errors. This PR adds the (*codecError).Unwrap() method so that methods like errors.Is() work correctly.
pkg/errors
(*codecError).Unwrap()
errors.Is()
Go 1.13 introduced an error wrapping mechanism that is similar, but incompatible with
pkg/errors
. This PR adds the(*codecError).Unwrap()
method so that methods likeerrors.Is()
work correctly.