added mail exception message

This commit is contained in:
vedatakd 2021-04-06 18:23:08 +03:00
parent f438fad6d9
commit 691b41947c
3 changed files with 7 additions and 1 deletions

View File

@ -3,4 +3,5 @@
return [ return [
'send_forgot_sms' => 'SMS sent to your registered phone. Please check.', 'send_forgot_sms' => 'SMS sent to your registered phone. Please check.',
'found_phone' => 'The phone number registered in the system was not found.', '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.',
]; ];

View File

@ -3,4 +3,5 @@
return [ return [
'send_forgot_sms' => 'Kayıtlı telefonunuza SMS gönderildi. Lütfen kontrol edin.', 'send_forgot_sms' => 'Kayıtlı telefonunuza SMS gönderildi. Lütfen kontrol edin.',
'found_phone' => 'Sistemde kayıtlı olan telefon numarası bulunamadı.', 'found_phone' => 'Sistemde kayıtlı olan telefon numarası bulunamadı.',
'error_mail' => 'İşleminiz başarıyla gerçekleştirildi.Ancak bilgilendirme maili gönderilemedi.',
]; ];

View File

@ -9,6 +9,7 @@ use Illuminate\Foundation\Exceptions\Handler;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Http\Response; use Illuminate\Http\Response;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use Swift_TransportException;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Throwable; use Throwable;
@ -86,7 +87,6 @@ class ExceptionHandler extends Handler
public function report(Exception $e) public function report(Exception $e)
{ {
if (app()->bound('sentry') if (app()->bound('sentry')
&& $this->shouldReport($e) && $this->shouldReport($e)
&& env('SENTRY_LARAVEL_DSN')) { && 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); parent::report($e);
} }