diff --git a/addons/default/visiosoft/base-theme/resources/lang/en/message.php b/addons/default/visiosoft/base-theme/resources/lang/en/message.php index 23a331087..189d050b1 100644 --- a/addons/default/visiosoft/base-theme/resources/lang/en/message.php +++ b/addons/default/visiosoft/base-theme/resources/lang/en/message.php @@ -3,4 +3,5 @@ return [ 'send_forgot_sms' => 'SMS sent to your registered phone. Please check.', 'found_phone' => 'The phone number registered in the system was not found.', + 'error_mail' => 'Your transaction was completed successfully, but the notification e-mail could not be sent.', ]; diff --git a/addons/default/visiosoft/base-theme/resources/lang/tr/message.php b/addons/default/visiosoft/base-theme/resources/lang/tr/message.php index 85c2610f5..5dc404af4 100644 --- a/addons/default/visiosoft/base-theme/resources/lang/tr/message.php +++ b/addons/default/visiosoft/base-theme/resources/lang/tr/message.php @@ -3,4 +3,5 @@ return [ 'send_forgot_sms' => 'Kayıtlı telefonunuza SMS gönderildi. Lütfen kontrol edin.', 'found_phone' => 'Sistemde kayıtlı olan telefon numarası bulunamadı.', + 'error_mail' => 'İşleminiz başarıyla gerçekleştirildi.Ancak bilgilendirme maili gönderilemedi.', ]; diff --git a/app/Exceptions/ExceptionHandler.php b/app/Exceptions/ExceptionHandler.php index 55f172d0f..ecd41f005 100644 --- a/app/Exceptions/ExceptionHandler.php +++ b/app/Exceptions/ExceptionHandler.php @@ -9,6 +9,7 @@ use Illuminate\Foundation\Exceptions\Handler; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Auth; +use Swift_TransportException; use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Throwable; @@ -86,7 +87,6 @@ class ExceptionHandler extends Handler public function report(Exception $e) { - if (app()->bound('sentry') && $this->shouldReport($e) && env('SENTRY_LARAVEL_DSN')) { @@ -95,6 +95,10 @@ class ExceptionHandler extends Handler } } + if ($e instanceof Swift_TransportException) { + die(trans('visiosoft.theme.base::message.error_mail')); + } + parent::report($e); }