Skip to content

Commit

Permalink
use %s for formatting string in fmt.Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagorossig committed Oct 1, 2024
1 parent ca1350c commit bf6318e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func loadTLSConfigFromFile(TLSCAPath string, TLSCertPath string, TLSKeyPath stri
caCertPool := x509.NewCertPool()
caCertPool.AppendCertsFromPEM(pem)
if !caCertPool.AppendCertsFromPEM(pem) {
return nil, fmt.Errorf("failed to append CA from PEM with path %w", TLSCAPath)
return nil, fmt.Errorf("failed to append CA from PEM with path %s", TLSCAPath)
}

cert, err := tls.LoadX509KeyPair(TLSCertPath, TLSKeyPath)
Expand Down

0 comments on commit bf6318e

Please sign in to comment.