You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For correct working go 1.13 error chains (including errors.Is()) needs implementation of interface:
type wrapper interface {
Unwrap() error
}
For example:
when i use github.com/gojek/heimdall and if at the time of request occurred context cancel, i am check it as if errors.Is(err, context.Canceled) {}, but it's not work because heimdall use valkyrie multierror that does't support method Unwrap.
The text was updated successfully, but these errors were encountered:
viartos
pushed a commit
to viartos/valkyrie
that referenced
this issue
May 27, 2020
For correct working go 1.13 error chains (including
errors.Is()
) needs implementation of interface:For example:
when i use
github.com/gojek/heimdall
and if at the time of request occurred context cancel, i am check it asif errors.Is(err, context.Canceled) {}
, but it's not work because heimdall use valkyrie multierror that does't support method Unwrap.The text was updated successfully, but these errors were encountered: