1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

744 improving error message

This commit is contained in:
shravan 2020-04-27 16:02:02 +05:30
parent f839f27b41
commit 0a34357921

View file

@ -50,7 +50,7 @@ func (v *Validate) Validate() (string, error) {
func (v *Validate) validateOverlayPattern() error {
rule := v.rule
if rule.Pattern == nil && len(rule.AnyPattern) == 0 && rule.Deny == nil {
return fmt.Errorf("a pattern or anyPattern or deny must be specified")
return fmt.Errorf("pattern, anyPattern or deny must be specified")
}
if rule.Pattern != nil && len(rule.AnyPattern) != 0 {