1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Handle validation exceptions

This commit is contained in:
Hillel Coren 2018-01-07 12:49:50 +02:00
parent 7058cd77e2
commit 258d1d1269

View File

@ -148,6 +148,7 @@ class Handler extends ExceptionHandler
if (Utils::isNinjaProd()
&& ! Utils::isDownForMaintenance()
&& ! ($e instanceof HttpResponseException)
&& ! ($e instanceof \Illuminate\Validation\ValidationException)
&& ! ($e instanceof ValidationException)) {
$data = [
'error' => get_class($e),