diff options
-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(); |