Skip to content

Commit

Permalink
Added specific error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rohozneanu committed Oct 9, 2024
1 parent 071a005 commit 5eecca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,11 @@ func loadCertificate(tlsCertFile, tlsPrivateKeyFile string) (*tls.Certificate, e
if tlsCertFile != "" && tlsPrivateKeyFile != "" {
tlsCertFilePath, err := fileurl.Clean(tlsCertFile)
if err != nil {
return nil, err
return nil, fmt.Errorf("invalid certificate file path: %w", err)
}
tlsPrivateKeyFilePath, err := fileurl.Clean(tlsPrivateKeyFile)
if err != nil {
return nil, err
return nil, fmt.Errorf("invalid certificate private key file path: %w", err)
}
cert, err := tls.LoadX509KeyPair(tlsCertFilePath, tlsPrivateKeyFilePath)
if err != nil {
Expand Down

0 comments on commit 5eecca3

Please sign in to comment.