diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-04-20 12:15:39 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-04-20 12:15:39 +0200 |
commit | 1ec4563c2e110fe08ee00b88df47bfac53f55a6c (patch) | |
tree | f17391351261228ff27d5d7c2030245aa33358a3 /lib/private/Files/Node/Root.php | |
parent | 1ea252fad5c6a57baf24c1483800a594ec8ba705 (diff) | |
download | nextcloud-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.php | 4 |
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(); |