mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Properly return SCIM Exceptions
This commit is contained in:
parent
bbbeaaee2b
commit
1f4d2f1e4a
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue