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)