mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Also log(debug) the error - could be useful for troubleshooting
This commit is contained in:
parent
1f4d2f1e4a
commit
a6a89ddd6c
|
@ -75,8 +75,12 @@ class Handler extends ExceptionHandler
|
||||||
|
|
||||||
// Handle SCIM exceptions
|
// Handle SCIM exceptions
|
||||||
if ($e instanceof SCIMException) {
|
if ($e instanceof SCIMException) {
|
||||||
return $e->render($request);
|
try {
|
||||||
//return response()->json(Helper::formatStandardApiResponse('error', null, 'Invalid SCIM Request'), 400);
|
$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)
|
// 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