summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorskalidindi53 <s.teja2004@gmail.com>2024-05-05 23:12:05 -0500
committerskalidindi53 <s.teja2004@gmail.com>2024-05-13 11:06:39 -0500
commit377a2f91d5661b2c9f4599f3f53269f1b36d9ab2 (patch)
treeb7cad588ccbac3a2ed93a74d000d2d960cf660a9 /lib/Controller
parent53a331c73559757b6843da78f069809e3de2ab64 (diff)
fix: throw error when target has DND on 2
Signed-off-by: skalidindi53 <s.teja2004@gmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/CallController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/CallController.php b/lib/Controller/CallController.php
index f4ef947bc..805bd047f 100644
--- a/lib/Controller/CallController.php
+++ b/lib/Controller/CallController.php
@@ -183,8 +183,8 @@ class CallController extends AEnvironmentAwareController {
try {
$this->participantService->sendCallNotificationForAttendee($this->room, $this->participant, $attendeeId);
- } catch (\InvalidArgumentException) {
- return new DataResponse([], Http::STATUS_BAD_REQUEST);
+ } catch (\InvalidArgumentException $e) {
+ return new DataResponse(['error' => $e->getMessage()], Http::STATUS_BAD_REQUEST);
} catch (DoesNotExistException) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}