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
In protocol/internal/error.go, in func (e OpError) Error() string the error is composed with fmt.Sprintf instead of wrapping the error.
This way, when I have a cdp.Runtime: CallFunctionOn: context deadline exceeded error, the errors.Is(err, context.DeadlineExceeded) check returns with false.
Would it be possible to modify it to use errors.Wrap() instead?
The text was updated successfully, but these errors were encountered:
Thanks for the fast response! Yes, I think so. The new Unwrap() function in protocol/internal/error.go looks promising. Though I don't really understand the other changes, but those might be unrelated.
In protocol/internal/error.go, in
func (e OpError) Error() string
the error is composed withfmt.Sprintf
instead of wrapping the error.This way, when I have a
cdp.Runtime: CallFunctionOn: context deadline exceeded
error, theerrors.Is(err, context.DeadlineExceeded)
check returns with false.Would it be possible to modify it to use
errors.Wrap()
instead?The text was updated successfully, but these errors were encountered: