diff --git a/rules/manager.go b/rules/manager.go index 8cca54e91..e06f6c1d7 100644 --- a/rules/manager.go +++ b/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...)