diff --git a/triggers/inotify/inotify.go b/triggers/inotify/inotify.go index b1cd751b..740a079d 100644 --- a/triggers/inotify/inotify.go +++ b/triggers/inotify/inotify.go @@ -109,6 +109,11 @@ func (d *daemon) startMonitoring() error { } func (d *daemon) walkFunc(path string, fi os.FileInfo, err error) error { + // handle error + if err != nil { + return fmt.Errorf("walk func: %v: %w", path, err) + } + // ignore non-directory if !fi.Mode().IsDir() { return nil