diff options
Diffstat (limited to 'apps/files_sharing/lib/Controller/ShareAPIController.php')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 10876e16568..990571b778f 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -482,7 +482,7 @@ class ShareAPIController extends OCSController { $code = $e->getCode() === 0 ? 403 : $e->getCode(); throw new OCSException($e->getHint(), $code); } catch (\Exception $e) { - throw new OCSForbiddenException($e->getMessage()); + throw new OCSForbiddenException($e->getMessage(), $e); } $output = $this->formatShare($share); @@ -749,7 +749,7 @@ class ShareAPIController extends OCSController { try { $expireDate = $this->parseDate($expireDate); } catch (\Exception $e) { - throw new OCSBadRequestException($e->getMessage()); + throw new OCSBadRequestException($e->getMessage(), $e); } $share->setExpirationDate($expireDate); } @@ -780,7 +780,7 @@ class ShareAPIController extends OCSController { try { $expireDate = $this->parseDate($expireDate); } catch (\Exception $e) { - throw new OCSBadRequestException($e->getMessage()); + throw new OCSBadRequestException($e->getMessage(), $e); } $share->setExpirationDate($expireDate); } @@ -809,7 +809,7 @@ class ShareAPIController extends OCSController { try { $share = $this->shareManager->updateShare($share); } catch (\Exception $e) { - throw new OCSBadRequestException($e->getMessage()); + throw new OCSBadRequestException($e->getMessage(), $e); } return new DataResponse($this->formatShare($share)); |