fix: better error message on missing user files dir

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/38300/head
John Molakvoæ 2023-05-16 10:31:52 +07:00 committed by John Molakvoæ
parent 0ad56e5752
commit 7d06dc3474
1 changed files with 1 additions and 1 deletions

@ -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) {