diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 39cfe7c665992..0a52f71b2b90e 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -37,6 +37,7 @@ namespace OCA\Files_Sharing\Controller; +use Exception; use OCA\Files_Sharing\Exceptions\SharingRightsException; use OCA\Files_Sharing\External\Storage; use OCA\Files\Helper; @@ -1619,7 +1620,8 @@ private function shareProviderResharingRights(string $userId, IShare $share, $no return true; } return false; - } catch (QueryException $e) { + } catch (Exception $e) { + \OC::$server->getLogger()->logException($e, ['app' => 'circles']); return false; } }