Skip to content

Commit f9c9e27

Browse files
Merge pull request #26129 from nextcloud/backport/26115/stable19
[stable19] Log exceptions when creating share
2 parents 95b5542 + e43c938 commit f9c9e27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,11 @@ public function createShare(
593593
try {
594594
$share = $this->shareManager->createShare($share);
595595
} catch (GenericShareException $e) {
596+
\OC::$server->getLogger()->logException($e);
596597
$code = $e->getCode() === 0 ? 403 : $e->getCode();
597598
throw new OCSException($e->getHint(), $code);
598599
} catch (\Exception $e) {
600+
\OC::$server->getLogger()->logException($e);
599601
throw new OCSForbiddenException($e->getMessage(), $e);
600602
}
601603

0 commit comments

Comments
 (0)