From 6caa3163d2a26db11612858d3f178a0086f9db97 Mon Sep 17 00:00:00 2001 From: Ehenoma Date: Thu, 29 Dec 2022 11:49:55 +0100 Subject: [PATCH] Log error when failing to create watcher --- watch/inotify_tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch/inotify_tracker.go b/watch/inotify_tracker.go index cb9572a..f2b56d7 100644 --- a/watch/inotify_tracker.go +++ b/watch/inotify_tracker.go @@ -217,7 +217,7 @@ func (shared *InotifyTracker) sendEvent(event fsnotify.Event) { func (shared *InotifyTracker) run() { watcher, err := fsnotify.NewWatcher() if err != nil { - util.Fatal("failed to create Watcher") + util.Fatal("failed to create Watcher: %v", err) } shared.watcher = watcher