From b5b54ff0572d5aa484910dbdeefa8ddb91998bf9 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Fri, 19 Jul 2019 19:41:16 +0200 Subject: [PATCH] lib/model: No watch-error on missing folder (fixes #5833) (#5876) --- lib/model/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/model.go b/lib/model/model.go index 3e6b557d3..7ebacd84d 100644 --- a/lib/model/model.go +++ b/lib/model/model.go @@ -2242,7 +2242,7 @@ func (m *model) WatchError(folder string) error { m.fmut.RLock() defer m.fmut.RUnlock() if err := m.checkFolderRunningLocked(folder); err != nil { - return err + return nil // If the folder isn't running, there's no error to report. } return m.folderRunners[folder].WatchError() }