From 0a34357921f32cd86952cedb8ac70d9ff560ac06 Mon Sep 17 00:00:00 2001 From: shravan Date: Mon, 27 Apr 2020 16:02:02 +0530 Subject: [PATCH] 744 improving error message --- pkg/policy/validate/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/policy/validate/validate.go b/pkg/policy/validate/validate.go index d120422d9d..c14099cbad 100644 --- a/pkg/policy/validate/validate.go +++ b/pkg/policy/validate/validate.go @@ -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 {