From 0dd87e255ab6b485fbdedb70227dab7f0aa677d7 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Tue, 14 Aug 2018 09:31:23 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Exceptions/Handler.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 26e756f43..f0b0424e4 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -124,6 +124,7 @@ class Handler extends ExceptionHandler if ($e instanceof ValidationException) { return $this->invalidJson($request, $e); } + return response()->json(['error' => $e->getMessage()], 500); } if (config('app.debug') == true) {