From c495cd822598acb6710a33359d3488f07856d1d6 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 27 Oct 2021 11:19:45 +0200 Subject: [PATCH] Added the success prop to the json exception response payload --- application/helpers/http_helper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/helpers/http_helper.php b/application/helpers/http_helper.php index 90e4e270..dd52d94a 100644 --- a/application/helpers/http_helper.php +++ b/application/helpers/http_helper.php @@ -138,6 +138,7 @@ if ( ! function_exists('json_exception')) function json_exception(Throwable $exception) { json_response([ + 'success' => FALSE, 'message' => $exception->getMessage(), 'trace' => config('debug') ? $exception->getTrace() : [] ], 500);