diff options
author | Jeremy Schlatter <jeremy.schlatter@gmail.com> | 2018-08-21 21:13:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-21 21:13:03 +0800 |
commit | 86acdf1a5bb31196adbc92e4923e0398868ce876 (patch) | |
tree | f95d3fb46da61d3f9574aba56c6e90b57fa5c013 /vendor/github.com/rjeczalik/notify/watcher_trigger.go | |
parent | 355fc47d396298bccf93c37bdbba9b9e88864790 (diff) | |
download | dexon-86acdf1a5bb31196adbc92e4923e0398868ce876.tar dexon-86acdf1a5bb31196adbc92e4923e0398868ce876.tar.gz dexon-86acdf1a5bb31196adbc92e4923e0398868ce876.tar.bz2 dexon-86acdf1a5bb31196adbc92e4923e0398868ce876.tar.lz dexon-86acdf1a5bb31196adbc92e4923e0398868ce876.tar.xz dexon-86acdf1a5bb31196adbc92e4923e0398868ce876.tar.zst dexon-86acdf1a5bb31196adbc92e4923e0398868ce876.zip |
vendor: update rjeczalik/notify so that it compiles on go1.11 (#17467)
Diffstat (limited to 'vendor/github.com/rjeczalik/notify/watcher_trigger.go')
-rw-r--r-- | vendor/github.com/rjeczalik/notify/watcher_trigger.go | 3 |
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 |