mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
fs/rc: fix dropped error
This commit is contained in:
parent
3dfa63b85c
commit
fe6f4135b4
@ -44,6 +44,9 @@ func CheckAndDownloadWebGUIRelease(checkUpdate bool, forceUpdate bool, fetchURL
|
|||||||
extractPath := filepath.Join(cachePath, "current")
|
extractPath := filepath.Join(cachePath, "current")
|
||||||
|
|
||||||
extractPathExist, extractPathStat, err := exists(extractPath)
|
extractPathExist, extractPathStat, err := exists(extractPath)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if extractPathExist && !extractPathStat.IsDir() {
|
if extractPathExist && !extractPathStat.IsDir() {
|
||||||
return errors.New("Web GUI path exists, but is a file instead of folder. Please check the path " + extractPath)
|
return errors.New("Web GUI path exists, but is a file instead of folder. Please check the path " + extractPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user