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:
parent
f839f27b41
commit
0a34357921
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue