Commit f907330c by bergquist

tech(mailer): improves error when grafana cannot read open cert/key file

ref #6949
parent e3b53fe5
......@@ -94,7 +94,7 @@ func createDialer() (*gomail.Dialer, error) {
if setting.Smtp.CertFile != "" {
cert, err := tls.LoadX509KeyPair(setting.Smtp.CertFile, setting.Smtp.KeyFile)
if err != nil {
return nil, err
return nil, fmt.Errorf("Could not load cert or key file. error: %v", err)
}
tlsconfig.Certificates = []tls.Certificate{cert}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment