Skip to content

Commit d94d38c

Browse files
committed
Fix TLS error message
1 parent 9edc9a1 commit d94d38c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/tls/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewServerConfig(logger log.Logger, certFile, keyFile, clientCAFile, minVers
5959

6060
certPool := x509.NewCertPool()
6161
if !certPool.AppendCertsFromPEM(caPEM) {
62-
return nil, fmt.Errorf("building client CA: %w", err)
62+
return nil, errors.New("parsing client CA failed")
6363
}
6464

6565
tlsCfg.ClientCAs = certPool

0 commit comments

Comments
 (0)