On 2020-06-08 01:49, Matt Harden wrote:
> I suspect your (possibly wrapped) error will be of type
> x509.UnknownAuthorityError, so you should be able to check for it with 
> errors.As:
> 
> var uaerr x509.UnknownAuthorityError
> if errors.As(err, &uaerr) {
>   // handle as an unknown authority error
> }

Thank You

It is even documented at the bottom of the x509 doc!

I read errors could be found in "Variables", in a forum and assumed they would
all be in one place, doh.

I guess a case sensitive search for Error, may work.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b1951dcb-4501-d8f8-26eb-f3cb433a7f8f%40gmail.com.

Reply via email to