diff --git a/collectors/likwidMetric.go b/collectors/likwidMetric.go index 36abb8e..372567b 100644 --- a/collectors/likwidMetric.go +++ b/collectors/likwidMetric.go @@ -344,6 +344,7 @@ func (m *LikwidCollector) takeMeasurement(evidx int, evset LikwidEventsetConfig, watcher, err := fsnotify.NewWatcher() if err != nil { cclog.ComponentError(m.name, err.Error()) + return true, err } defer watcher.Close() if len(m.config.LockfilePath) > 0 {