Pass through the original error text

This commit is contained in:
Vladimir Pouzanov 2017-08-01 18:36:01 +01:00 committed by GitHub
parent 60926d4cca
commit e62bfff135

View file

@ -81,7 +81,7 @@ func (a authTLS) Parse(ing *extensions.Ingress) (interface{}, error) {
_, _, err = k8s.ParseNameNS(tlsauthsecret)
if err != nil {
return &AuthSSLConfig{}, ing_errors.NewLocationDenied("secret name must include the namespace")
return &AuthSSLConfig{}, ing_errors.NewLocationDenied(err.Error())
}
tlsdepth, err := parser.GetIntAnnotation(annotationAuthTLSDepth, ing)