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.