Skip to content

Commit cc913e5

Browse files
committed
chore: Improve avatar error output
Add exception Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent aed4fd0 commit cc913e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Avatar/UserAvatar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ public function getFile(int $size, bool $darkTheme = false): ISimpleFile {
258258
$file = $this->folder->newFile($path);
259259
$file->putContent($data);
260260
} catch (NotPermittedException $e) {
261-
$this->logger->error('Failed to save avatar for ' . $this->user->getUID());
262-
throw new NotFoundException();
261+
$this->logger->error('Failed to save avatar for ' . $this->user->getUID(), ['exception' => $e]);
262+
throw new NotFoundException(previous: $e);
263263
}
264264
}
265265

0 commit comments

Comments
 (0)