From 0f76024eebfef07ea97057478b59089e18a4a298 Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 8 Jul 2020 15:00:06 -0700 Subject: [PATCH] Clarify error messaging, group names must be provided. (#7529) Signed-off-by: Callum Styan --- pkg/rulefmt/rulefmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rulefmt/rulefmt.go b/pkg/rulefmt/rulefmt.go index 899ab2738..000333217 100644 --- a/pkg/rulefmt/rulefmt.go +++ b/pkg/rulefmt/rulefmt.go @@ -68,7 +68,7 @@ func (g *RuleGroups) Validate(node ruleGroups) (errs []error) { for j, g := range g.Groups { if g.Name == "" { - errs = append(errs, errors.Errorf("%d:%d: Groupname should not be empty", node.Groups[j].Line, node.Groups[j].Column)) + errs = append(errs, errors.Errorf("%d:%d: Groupname must not be empty", node.Groups[j].Line, node.Groups[j].Column)) } if _, ok := set[g.Name]; ok {