aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-07-14 21:29:02 +0800
committerMaran <maran.hidskes@gmail.com>2014-07-14 21:29:02 +0800
commitdce0ccf4902def623f33af3ce3878d1c1512101e (patch)
treecfa92701548862cb3db3f85478a46383860d0dbd
parente6a428f85f0d1c7e50dc8262a7687ec2f1ce2d7b (diff)
downloaddexon-dce0ccf4902def623f33af3ce3878d1c1512101e.tar.gz
dexon-dce0ccf4902def623f33af3ce3878d1c1512101e.tar.zst
dexon-dce0ccf4902def623f33af3ce3878d1c1512101e.zip
Don't silently fail on watcher creation
-rw-r--r--ethereal/html_container.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethereal/html_container.go b/ethereal/html_container.go
index 2ad06ffb5..04136f801 100644
--- a/ethereal/html_container.go
+++ b/ethereal/html_container.go
@@ -8,7 +8,6 @@ import (
"github.com/go-qml/qml"
"github.com/howeyc/fsnotify"
"io/ioutil"
- "log"
"net/url"
"os"
"path"
@@ -77,11 +76,13 @@ func (app *HtmlApplication) NewWatcher(quitChan chan bool) {
app.watcher, err = fsnotify.NewWatcher()
if err != nil {
+ logger.Infoln("Could not create new auto-reload watcher:", err)
return
}
err = app.watcher.Watch(app.RootFolder())
if err != nil {
- log.Fatal(err)
+ logger.Infoln("Could not start auto-reload watcher:", err)
+ return
}
for _, folder := range app.RecursiveFolders() {
fullPath := app.RootFolder() + "/" + folder.Name()