From fe6f4135b420fb22bafc9a25baf1ee91ec9291ac Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 3 Feb 2020 16:04:58 -0800 Subject: [PATCH] fs/rc: fix dropped error --- fs/rc/webgui.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/rc/webgui.go b/fs/rc/webgui.go index cc3c1a009..9dd4f44d7 100644 --- a/fs/rc/webgui.go +++ b/fs/rc/webgui.go @@ -44,6 +44,9 @@ func CheckAndDownloadWebGUIRelease(checkUpdate bool, forceUpdate bool, fetchURL extractPath := filepath.Join(cachePath, "current") extractPathExist, extractPathStat, err := exists(extractPath) + if err != nil { + return err + } if extractPathExist && !extractPathStat.IsDir() { return errors.New("Web GUI path exists, but is a file instead of folder. Please check the path " + extractPath)