Skip to content

Commit 32747ca

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents e18c3e0 + 4b4983e commit 32747ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/Exceptions/Handler.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ public function render($request, Throwable $e)
7575

7676
// Handle SCIM exceptions
7777
if ($e instanceof SCIMException) {
78-
return response()->json(Helper::formatStandardApiResponse('error', null, 'Invalid SCIM Request'), 400);
78+
try {
79+
$e->report(); // logs as 'debug', so shouldn't get too noisy
80+
} catch(\Exception $reportException) {
81+
//do nothing
82+
}
83+
return $e->render($request); // ALL SCIMExceptions have the 'render()' method
7984
}
8085

8186
// Handle standard requests that fail because Carbon cannot parse the date on validation (when a submitted date value is definitely not a date)

0 commit comments

Comments
 (0)