Closed waichee closed 4 years ago
Which version of the errors
package are you using? If you are not using the latest master branch (so, you’re using 0.8.1
or any other release) then the package is incompatible with the standard errors library.
We are working on cutting a new release that will be compatible with standard errors package expansions. But it’s kind of slow going as everything is done by volunteers.
ah master branch works! thanks
Checking of a error type in the error chain only works for errors wrapped with
fmt.Errorf
fmt.Errorf("some %w", err)
Errors wrapped with
errors.Wrap(err, "some stuff")
does not work when being checked with