mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
added mail exception message
This commit is contained in:
parent
f438fad6d9
commit
691b41947c
@ -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.',
|
||||
];
|
||||
|
||||
@ -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.',
|
||||
];
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user