diff --git a/core/pkg/ingress/annotations/authtls/main.go b/core/pkg/ingress/annotations/authtls/main.go index 7b7e4833a..181895cb6 100644 --- a/core/pkg/ingress/annotations/authtls/main.go +++ b/core/pkg/ingress/annotations/authtls/main.go @@ -82,7 +82,7 @@ func (a authTLS) Parse(ing *extensions.Ingress) (interface{}, error) { _, _, err = k8s.ParseNameNS(tlsauthsecret) if err != nil { - return &AuthSSLConfig{}, ing_errors.NewLocationDenied("an empty string is not a valid secret name") + return &AuthSSLConfig{}, ing_errors.NewLocationDenied(err.Error()) } tlsdepth, err := parser.GetIntAnnotation(annotationAuthTLSDepth, ing)