An error occurred while fetching this tab.
chore: Fix usage of errors
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: efritz
There are several places where I used errors.Is(err, &want)
that are illegal, where want
is not something that can be successfully compared. This PR gets rid of these illegal uses.
Consistency check:
errors.Is(...)
to compare an err
value against a known constant errorerrors.As(...)
to cast an err
value into a specific type of known struct or interface (structs with fields, etc)
Push commits to the source branch or add previously merged commits to review them.