mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-01 20:22:21 +00:00
Display system CA error only if there is an error (#870)
This commit is contained in:
parent
cddc54bae4
commit
1fb8003294
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue