Skip to content

Commit

Permalink
Improve message
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Apr 26, 2023
1 parent 182b945 commit 138ab5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ func New(patterns []string, maxWatchDirs int) (*Notify, error) {
for _, t := range watchDirs {
err = watcher.Add(t)
if err != nil {
logger.Error("%s: %v", t, err)
if err.Error() == "bad file descriptor" {
logger.Info("%s: %v", t, err)
} else {
logger.Error("%s: %v", t, err)
}
} else {
logger.Info("gazing at: %s", t)
}
Expand Down

0 comments on commit 138ab5a

Please sign in to comment.