Skip to content

Commit 81d95b8

Browse files
refactor(config): update error messages
1 parent ec8bdb7 commit 81d95b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/lint.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func GetLinter(conf *lint.Config) (*lint.Linter, error) {
1919
func GetFormatter(conf *lint.Config) (lint.Formatter, error) {
2020
format, ok := globalRegistry.GetFormatter(conf.Formatter)
2121
if !ok {
22-
return nil, fmt.Errorf("Config Error: '%s' formatter not found", conf.Formatter)
22+
return nil, fmt.Errorf("config error: '%s' formatter not found", conf.Formatter)
2323
}
2424
return format, nil
2525
}
@@ -33,7 +33,7 @@ func GetEnabledRules(conf *lint.Config) ([]lint.Rule, error) {
3333
// before checking if rule is enabled
3434
r, ok := globalRegistry.GetRule(ruleName)
3535
if !ok {
36-
return nil, fmt.Errorf("Config Error: '%s' rule not found", ruleName)
36+
return nil, fmt.Errorf("config error: '%s' rule not found", ruleName)
3737
}
3838

3939
if !ruleConfig.Enabled {
@@ -42,7 +42,7 @@ func GetEnabledRules(conf *lint.Config) ([]lint.Rule, error) {
4242

4343
err := r.Apply(ruleConfig.Argument, ruleConfig.Flags)
4444
if err != nil {
45-
return nil, fmt.Errorf("Config Error: %v", err)
45+
return nil, fmt.Errorf("config error: %v", err)
4646
}
4747
enabledRules = append(enabledRules, r)
4848
}

0 commit comments

Comments
 (0)