mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-02-13 21:00:00 +00:00
Display system CA error only if there is an error (#870)
This commit is contained in:
@@ -37,7 +37,9 @@ func NewClient(c *cli.Context) (woodpecker.Client, error) {
|
||||
|
||||
// attempt to find system CA certs
|
||||
certs, err := x509.SystemCertPool()
|
||||
log.Error().Msgf("failed to find system CA certs: %v", err)
|
||||
if err != nil {
|
||||
log.Error().Msgf("failed to find system CA certs: %v", err)
|
||||
}
|
||||
tlsConfig := &tls.Config{
|
||||
RootCAs: certs,
|
||||
InsecureSkipVerify: skip,
|
||||
|
||||
Reference in New Issue
Block a user