fs/rc: fix dropped error

s3-about
Lars Lehtonen 2020-02-03 16:04:58 -08:00 committed by Nick Craig-Wood
parent 3dfa63b85c
commit fe6f4135b4
1 changed files with 3 additions and 0 deletions

View File

@ -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)