Browse Source

Merge "Display filename when encountering bad rule file."

changes/80/80/1
Julius Volz 11 years ago committed by Gerrit Code Review
parent
commit
20bfaf80ab
  1. 2
      rules/manager.go

2
rules/manager.go

@ -178,7 +178,7 @@ func (m *ruleManager) AddRulesFromConfig(config config.Config) error {
for _, ruleFile := range config.Global.RuleFile {
newRules, err := LoadRulesFromFile(ruleFile)
if err != nil {
return err
return fmt.Errorf("%s: %s", ruleFile, err)
}
m.Lock()
m.rules = append(m.rules, newRules...)

Loading…
Cancel
Save