Merge pull request #38300 from nextcloud/fix/better-error-message

fix: better error message on missing user files dir
This commit is contained in:
Simon L 2023-05-26 01:10:31 +02:00 committed by GitHub
commit 477d6444b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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