]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: better error message on missing user files dir 38300/head
authorJohn Molakvoæ <skjnldsv@protonmail.com>
Tue, 16 May 2023 08:31:52 +0000 (10:31 +0200)
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>
Thu, 25 May 2023 18:31:14 +0000 (20:31 +0200)
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
lib/private/legacy/OC_Helper.php

index 07d81933d00092eaba0fdcc8825e30cc9f947498..8c8be0e1069d0932c6b94ed4b917497d617145d5 100644 (file)
@@ -487,7 +487,7 @@ class OC_Helper {
                        $rootInfo = \OC\Files\Filesystem::getFileInfo($path, $includeExtStorage ? 'ext' : false);
                }
                if (!$rootInfo instanceof \OCP\Files\FileInfo) {
-                       throw new \OCP\Files\NotFoundException();
+                       throw new \OCP\Files\NotFoundException('The root directory of the user\'s files is missing');
                }
                $used = $rootInfo->getSize($includeMountPoints);
                if ($used < 0) {