mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
fix: friendly tip for initial logging in [skip ci] (#3406)
* refactor: friendly tip for initial logging in * fix CodeFactor issue more info pls refer to: https://segmentfault.com/a/1190000043031147
This commit is contained in:
parent
fcaf485e0b
commit
ee77c3b113
@ -15,6 +15,10 @@ func GetStorageAndActualPath(rawPath string) (storage driver.Driver, actualPath
|
||||
rawPath = utils.FixAndCleanPath(rawPath)
|
||||
storage = GetBalancedStorage(rawPath)
|
||||
if storage == nil {
|
||||
if rawPath == "/" {
|
||||
err = errors.New("please add a storage first.")
|
||||
return
|
||||
}
|
||||
err = errors.Errorf("can't find storage with rawPath: %s", rawPath)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user