all: Display fs watcher status and retry starting it (ref #4552) (#4713)

This commit is contained in:
Simon Frei
2018-02-04 22:46:24 +01:00
committed by Jakob Borg
parent 649d4cf7b0
commit f87f13081b
6 changed files with 122 additions and 25 deletions

View File

@@ -112,6 +112,7 @@ type modelIntf interface {
State(folder string) (string, time.Time, error)
UsageReportingStats(version int, preview bool) map[string]interface{}
PullErrors(folder string) ([]model.FileError, error)
WatchError(folder string) error
}
type configIntf interface {
@@ -733,6 +734,11 @@ func folderSummary(cfg configIntf, m modelIntf, folder string) (map[string]inter
}
}
err = m.WatchError(folder)
if err != nil {
res["watchError"] = err.Error()
}
return res, nil
}