Skip to content

Commit e09d59a

Browse files
Merge pull request #26128 from nextcloud/backport/26115/stable21
[stable21] Log exceptions when creating share
2 parents 8d6a4be + f109677 commit e09d59a

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
@@ -631,9 +631,11 @@ public function createShare(
631631
try {
632632
$share = $this->shareManager->createShare($share);
633633
} catch (GenericShareException $e) {
634+
\OC::$server->getLogger()->logException($e);
634635
$code = $e->getCode() === 0 ? 403 : $e->getCode();
635636
throw new OCSException($e->getHint(), $code);
636637
} catch (\Exception $e) {
638+
\OC::$server->getLogger()->logException($e);
637639
throw new OCSForbiddenException($e->getMessage(), $e);
638640
}
639641

0 commit comments

Comments
 (0)