File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ func GetLinter(conf *lint.Config) (*lint.Linter, error) {
1919func GetFormatter (conf * lint.Config ) (lint.Formatter , error ) {
2020 format , ok := globalRegistry .GetFormatter (conf .Formatter )
2121 if ! ok {
22- return nil , fmt .Errorf ("'%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 ("'%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 , err
45+ return nil , fmt . Errorf ( "Config Error: %v" , err )
4646 }
4747 enabledRules = append (enabledRules , r )
4848 }
You can’t perform that action at this time.
0 commit comments