From 66421117973d9349354317ceeee4f9f39777b70e Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 9 Nov 2020 16:18:26 -0100 Subject: [PATCH] catching all exception from the API Signed-off-by: Maxence Lange --- apps/files_sharing/lib/Controller/ShareAPIController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }