Skip to content

Commit

Permalink
Adjust error message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Nov 7, 2022
1 parent a5582f2 commit 4b65158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (n *Notify) wait() {
if event.Op == fsnotify.Create && shouldWatch(normalizedName, n.candidates) {
err := n.watcher.Remove(normalizedName)
if err != nil {
if !strings.HasPrefix(err.Error(), "can't remove non-existent watch for:") {
if !strings.HasPrefix(err.Error(), "can't remove non-existent") {
logger.Error("watcher.Remove: %s", err)
}
}
Expand Down

0 comments on commit 4b65158

Please sign in to comment.