aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/html_container.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-17 21:32:44 +0800
committerobscuren <geffobscura@gmail.com>2014-07-17 21:32:44 +0800
commitc9517024237de781cdc450bca89907217e5a8cef (patch)
tree9ed398ca6ddbc019917b96a6e14988d89fbef15a /ethereal/html_container.go
parentfc8bd7229ee25e214130df98875ecc13e4650911 (diff)
parent7d64b589b4cf3f71125d5bd0f0a8f6a560e909db (diff)
downloadgo-tangerine-c9517024237de781cdc450bca89907217e5a8cef.tar
go-tangerine-c9517024237de781cdc450bca89907217e5a8cef.tar.gz
go-tangerine-c9517024237de781cdc450bca89907217e5a8cef.tar.bz2
go-tangerine-c9517024237de781cdc450bca89907217e5a8cef.tar.lz
go-tangerine-c9517024237de781cdc450bca89907217e5a8cef.tar.xz
go-tangerine-c9517024237de781cdc450bca89907217e5a8cef.tar.zst
go-tangerine-c9517024237de781cdc450bca89907217e5a8cef.zip
Merge branch 'develop'0.5.17
Diffstat (limited to 'ethereal/html_container.go')
-rw-r--r--ethereal/html_container.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/ethereal/html_container.go b/ethereal/html_container.go
index 1e835eebc..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"
@@ -59,7 +58,7 @@ func (app *HtmlApplication) RootFolder() string {
if err != nil {
return ""
}
- return path.Dir(folder.RequestURI())
+ return path.Dir(ethutil.WindonizePath(folder.RequestURI()))
}
func (app *HtmlApplication) RecursiveFolders() []os.FileInfo {
files, _ := ioutil.ReadDir(app.RootFolder())
@@ -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()