Merge "Display filename when encountering bad rule file."

This commit is contained in:
Julius Volz 2013-12-13 15:01:02 +01:00 committed by Gerrit Code Review
commit 20bfaf80ab

View file

@ -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...)