Skip to content

Commit

Permalink
Merge pull request #208 from nextcloud/backport/206/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(API): Add a log entry when an error occurs so the admin can pass …
  • Loading branch information
blizzz authored May 17, 2023
2 parents 4da0ba9 + a5825ee commit 2565c89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function getRelatedResources(string $providerId, string $itemId): DataRes

return new DataResponse($new);
} catch (Exception $e) {
$this->logger->error($e->getMessage(), ['exception' => $e]);
throw new OCSException(
($e->getMessage() === '') ? get_class($e) : $e->getMessage(),
Http::STATUS_BAD_REQUEST
Expand Down

0 comments on commit 2565c89

Please sign in to comment.