We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go 1.13 supports wrapping errors in a standard way.
tracerr doesn't print stack traces of wrapped errors, as it doesn't know how to look inside to see the wrapped error is a tracerr.Error.
Changing the test in print.go from
e, ok := err.(Error) if !ok { return err.Error() }
to
var e Error if !errors.As(err, &e) { return err.Error() }
It's a fairly trivial change, but does mean that it won't compile with Go 1.12 or earlier, without some minor refactoring and build flags.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Go 1.13 supports wrapping errors in a standard way.
tracerr doesn't print stack traces of wrapped errors, as it doesn't know how to look inside to see the wrapped error is a tracerr.Error.
Changing the test in print.go from
to
It's a fairly trivial change, but does mean that it won't compile with Go 1.12 or earlier, without some minor refactoring and build flags.
The text was updated successfully, but these errors were encountered: