Skip to content

Commit

Permalink
Merge pull request #1002 from farcaller/patch-1
Browse files Browse the repository at this point in the history
Fixed the ambiguous error message
  • Loading branch information
aledbf authored Aug 5, 2017
2 parents faf80ad + e62bfff commit 0fad23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/pkg/ingress/annotations/authtls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0fad23a

Please sign in to comment.