aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/Root.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-04-20 12:15:39 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-04-20 12:15:39 +0200
commit1ec4563c2e110fe08ee00b88df47bfac53f55a6c (patch)
treef17391351261228ff27d5d7c2030245aa33358a3 /lib/private/Files/Node/Root.php
parent1ea252fad5c6a57baf24c1483800a594ec8ba705 (diff)
downloadnextcloud-server-1ec4563c2e110fe08ee00b88df47bfac53f55a6c.tar.gz
nextcloud-server-1ec4563c2e110fe08ee00b88df47bfac53f55a6c.zip
log stacktrace for 'Backends provided no user object'
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Files/Node/Root.php')
-rw-r--r--lib/private/Files/Node/Root.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php
index 8b599ddfd75..6dd65a4291d 100644
--- a/lib/private/Files/Node/Root.php
+++ b/lib/private/Files/Node/Root.php
@@ -365,6 +365,7 @@ class Root extends Folder implements IRootFolder {
$userObject = $this->userManager->get($userId);
if (is_null($userObject)) {
+ $e = new NoUserException('Backends provided no user object');
$this->logger->error(
sprintf(
'Backends provided no user object for %s',
@@ -372,9 +373,10 @@ class Root extends Folder implements IRootFolder {
),
[
'app' => 'files',
+ 'exception' => $e,
]
);
- throw new NoUserException('Backends provided no user object');
+ throw $e;
}
$userId = $userObject->getUID();