Improve 'no such linter' error message (#1244)
This commit is contained in:
parent
862ed88cf0
commit
21ee78cf62
@ -22,7 +22,7 @@ func (v Validator) validateLintersNames(cfg *config.Linters) error {
|
||||
allNames = append(allNames, cfg.Disable...)
|
||||
for _, name := range allNames {
|
||||
if v.m.GetLinterConfigs(name) == nil {
|
||||
return fmt.Errorf("no such linter %q", name)
|
||||
return fmt.Errorf("no such linter %v, run 'golangci-lint linters' to see the list of supported linters", name)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user