Merge pull request #1002 from farcaller/patch-1

Fixed the ambiguous error message
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-08-05 15:36:48 -04:00 committed by GitHub
commit 0fad23af25

View file

@ -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)