-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return a tls.CertificateVerificationError when verifying the certificate fails #3730
Comments
The question is, how does a reasonable error API look like. quic-go/internal/qerr/errors.go Lines 15 to 20 in 6d7280b
We could replace this with an However, this doesn't really make a lot of sense for errors that we receive from the peer. There, we only have the error code and the error message, and wrapping those in a Go error doesn't feel right. I'm wondering if there's a better error abstraction. |
What about a way for an application to define the mapping/func from |
I'm not sure how that would work? The more idiomatic way would be to allow the application to do error assertions / unwrap the underlying error, which is what #4015 does. |
This error was added in Go 1.20.
The text was updated successfully, but these errors were encountered: