From 271d28f2b9b247329cc5caa9a0e2a40a0c308430 Mon Sep 17 00:00:00 2001 From: diashalabi Date: Fri, 15 Oct 2021 16:55:12 +0300 Subject: [PATCH] #4724 demand not work --- app/Exceptions/ExceptionHandler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Exceptions/ExceptionHandler.php b/app/Exceptions/ExceptionHandler.php index f7522c175..9e33ef385 100644 --- a/app/Exceptions/ExceptionHandler.php +++ b/app/Exceptions/ExceptionHandler.php @@ -80,7 +80,12 @@ class ExceptionHandler extends Handler } if ($e instanceof Swift_TransportException) { - die(trans('visiosoft.theme.base::message.error_mail')); + echo json_encode([ + 'success' => false, + 'msg' => trans('visiosoft.theme.base::message.error_mail'), + ]); + + die(); } parent::report($e);