Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

fix(triggers/inotify): handle err argument in walk func - resolves #92 #93

Merged
merged 1 commit into from
Feb 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions triggers/inotify/inotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down