A free open source IT asset/license management system
Also log(debug) the error - could be useful for troubleshooting
Brady Wetheringtona6a89ddd6c89
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.phpindex e89bffcb90..3d4db93452 100644--- a/app/Exceptions/Handler.php+++ b/app/Exceptions/Handler.php@@ -75,8 +75,12 @@ class Handler extends ExceptionHandler// Handle SCIM exceptionsif ($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)