Skip to content

Commit

Permalink
cmd: Show error when loading x509 cert fails (#932)
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <aeneas@ory.am>
  • Loading branch information
arekkas committed Jul 16, 2018
1 parent 38d591d commit 1845a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/helper_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func loadCertificateFromFile(cmd *cobra.Command, c *config.Config) *tls.Certific

cert, err := tls.LoadX509KeyPair(certPath, keyPath)
if err != nil {
c.GetLogger().Warn("Could not load x509 key pair: %s", cert)
c.GetLogger().WithError(errors.WithStack(err)).Warn("Could not load x509 key pair, will use self-issued certificate instead.")
return nil
}
return &cert
Expand Down

0 comments on commit 1845a3b

Please sign in to comment.