log stacktrace for 'Backends provided no user object'

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2022-04-20 12:15:39 +02:00
parent 1ea252fad5
commit 1ec4563c2e
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -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();