From 82a0a85c15c9d066efa6232cd2f827f2823ba4d3 Mon Sep 17 00:00:00 2001 From: Hannes Hansen Date: Thu, 21 Nov 2024 09:14:38 +0100 Subject: [PATCH] Update inotify_tracker.go; fix https://github.com/hpcloud/tail/issues/192 --- 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 739b3c2a..d711946f 100644 --- a/watch/inotify_tracker.go +++ b/watch/inotify_tracker.go @@ -216,7 +216,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