Skip to content

A free open source IT asset/license management system

Properly return SCIM Exceptions

Brady Wetherington1f4d2f1e4a04
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index 3b1ffb9b31..e89bffcb90 100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -75,7 +75,8 @@ class Handler extends ExceptionHandler
// Handle SCIM exceptions
if ($e instanceof SCIMException) {
- return response()->json(Helper::formatStandardApiResponse('error', null, 'Invalid SCIM Request'), 400);
+ return $e->render($request);
+ //return response()->json(Helper::formatStandardApiResponse('error', null, 'Invalid SCIM Request'), 400);
}
// Handle standard requests that fail because Carbon cannot parse the date on validation (when a submitted date value is definitely not a date)