Fixed the ambiguous error message

This commit is contained in:
Vladimir Pouzanov 2017-07-21 17:45:23 +01:00 committed by GitHub
parent 1a26aa2d53
commit 60926d4cca

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("an empty string is not a valid secret name")
return &AuthSSLConfig{}, ing_errors.NewLocationDenied("secret name must include the namespace")
}
tlsdepth, err := parser.GetIntAnnotation(annotationAuthTLSDepth, ing)