Skip to content

Commit

Permalink
Also log(debug) the error - could be useful for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
uberbrady committed Jul 5, 2023
1 parent 1f4d2f1 commit a6a89dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ public function render($request, Throwable $e)

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

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

0 comments on commit a6a89dd

Please sign in to comment.