aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-05-26 01:10:31 +0200
committerGitHub <noreply@github.com>2023-05-26 01:10:31 +0200
commit477d6444b864596fea8507399cda703d0339f7b9 (patch)
tree16ee1a10dffb30d009e9a2ef28a1c603bc8f2534
parentcc525094b2ef53fc43bc2ee4672d4061b4d9cb0d (diff)
parent7d06dc34745ea61812507021072d6ee8f4704a5a (diff)
downloadnextcloud-server-477d6444b864596fea8507399cda703d0339f7b9.tar.gz
nextcloud-server-477d6444b864596fea8507399cda703d0339f7b9.zip
Merge pull request #38300 from nextcloud/fix/better-error-message
fix: better error message on missing user files dir
-rw-r--r--lib/private/legacy/OC_Helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 07d81933d00..8c8be0e1069 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -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) {