From 4ad669518fe4b06320cac84ca4789474196cc78c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 19 Aug 2022 14:52:29 +0200 Subject: [PATCH] also hard error if the home storage can't be created Signed-off-by: Robin Appelman --- lib/private/Files/Mount/MountPoint.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/Files/Mount/MountPoint.php b/lib/private/Files/Mount/MountPoint.php index 49f7e560ad373..00d295a04807c 100644 --- a/lib/private/Files/Mount/MountPoint.php +++ b/lib/private/Files/Mount/MountPoint.php @@ -172,6 +172,8 @@ private function createStorage() { if ($this->mountPoint === '/') { // the root storage could not be initialized, show the user! throw new \Exception('The root storage could not be initialized. Please contact your local administrator.', $exception->getCode(), $exception); + } elseif (substr_count($this->mountPoint, '/') == 2) { // home mount is `/getCode(), $exception); } else { \OC::$server->get(LoggerInterface::class)->error($exception->getMessage(), ['exception' => $exception]); }