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
It's possible to check the error type using a type assertion, but that only remains possible if the error is never wrapped between being raised and the check.
The same thing seems to be true for schema.ConversionError and schema.UnknownKeyError.
The text was updated successfully, but these errors were encountered:
Sorry, I was having a complete brain fart when I asked this -- it works fine when checking with errors.As() which is what I should have been using. See https://play.golang.org/p/_e8UmbXD1J- for working example.
Do you know if there is any way to check for
schema.MultiError
usingerrors.Is()
?The following playground link demonstrates the problem I'm having:
https://play.golang.org/p/jwrz20goQqy
It's possible to check the error type using a type assertion, but that only remains possible if the error is never wrapped between being raised and the check.
The same thing seems to be true for
schema.ConversionError
andschema.UnknownKeyError
.The text was updated successfully, but these errors were encountered: