don't ignore the err

This commit is contained in:
dovholuknf
2023-02-10 17:23:24 -05:00
parent 225be8ec38
commit 25c0300d0e
+5 -1
View File
@@ -89,7 +89,11 @@ func (self *RestClientEdgeIdentity) NewTlsClientConfig() (*tls.Config, error) {
rootCaPool.AppendCertsFromPEM(rootPemData)
} else {
rootCaPool, _ = x509.SystemCertPool()
var err error
rootCaPool, err = x509.SystemCertPool()
if err != nil {
return nil, errors.New("couldn't retrieve the SystemCertPool and no CaCert provided")
}
}
return &tls.Config{