Skip to content

Commit 3fc5dfb

Browse files
authored
fix: formatter validation message (#5624)
1 parent b9ba88d commit 3fc5dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/formatters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Formatters struct {
1414
func (f *Formatters) Validate() error {
1515
for _, n := range f.Enable {
1616
if !slices.Contains(getAllFormatterNames(), n) {
17-
return fmt.Errorf("%s is a formatter", n)
17+
return fmt.Errorf("%s is not a formatter", n)
1818
}
1919
}
2020

0 commit comments

Comments
 (0)