aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rjeczalik/notify/watcher_trigger.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/rjeczalik/notify/watcher_trigger.go')
-rw-r--r--vendor/github.com/rjeczalik/notify/watcher_trigger.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/rjeczalik/notify/watcher_trigger.go b/vendor/github.com/rjeczalik/notify/watcher_trigger.go
index 78151f909..1ebe04829 100644
--- a/vendor/github.com/rjeczalik/notify/watcher_trigger.go
+++ b/vendor/github.com/rjeczalik/notify/watcher_trigger.go
@@ -106,7 +106,8 @@ func newWatcher(c chan<- EventInfo) watcher {
}
t.t = newTrigger(t.pthLkp)
if err := t.t.Init(); err != nil {
- panic(err)
+ t.Close()
+ return watcherStub{fmt.Errorf("failed setting up watcher: %v", err)}
}
go t.monitor()
return t