-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels