return an error when cert not found

This commit is contained in:
Tony Li 2017-01-27 16:37:57 -05:00 committed by Tony Li
parent 9a130a7550
commit f705431e55

View file

@ -375,7 +375,7 @@ func (l *L7) checkSSLCert() (err error) {
return nil return nil
} }
glog.Warningf("-- %s: Uh oh, no cert found by %f", l.runtimeInfo.Name, certName) return fmt.Errorf("Cannot find existing sslCertificate %v for %v", certName, l.Name)
} }
ingCert := l.runtimeInfo.TLS.Cert ingCert := l.runtimeInfo.TLS.Cert