diff --git a/internal/op/path.go b/internal/op/path.go index 6e3dfdf7422..851c95790f3 100644 --- a/internal/op/path.go +++ b/internal/op/path.go @@ -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 }