diff --git a/pkg/config/formatters.go b/pkg/config/formatters.go index 1bb623bc4ba8..145ea861ab42 100644 --- a/pkg/config/formatters.go +++ b/pkg/config/formatters.go @@ -14,7 +14,7 @@ type Formatters struct { func (f *Formatters) Validate() error { for _, n := range f.Enable { if !slices.Contains(getAllFormatterNames(), n) { - return fmt.Errorf("%s is a formatter", n) + return fmt.Errorf("%s is not a formatter", n) } }