From 8b61175c3b20c8281b8b4388b2a67f15b42e7f56 Mon Sep 17 00:00:00 2001 From: ayan4m1 Date: Sat, 15 Sep 2018 20:59:55 -0400 Subject: [PATCH] add exception message to fail message for mail test --- app/Http/Controllers/Admin/Settings/MailController.php | 2 +- resources/lang/en/base.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/Settings/MailController.php b/app/Http/Controllers/Admin/Settings/MailController.php index df4b17778..b84523142 100644 --- a/app/Http/Controllers/Admin/Settings/MailController.php +++ b/app/Http/Controllers/Admin/Settings/MailController.php @@ -128,7 +128,7 @@ class MailController extends Controller Notification::route('mail', $request->user()->email) ->notify(new MailTested($request->user())); } catch (Exception $exception) { - $this->alert->danger(trans('base.mail.test_failed'))->flash(); + $this->alert->danger(trans('base.mail.test_failed') . ' ' . $exception->getMessage())->flash(); return redirect()->route('admin.settings.mail'); } diff --git a/resources/lang/en/base.php b/resources/lang/en/base.php index 588d2fbe2..d57f1090b 100644 --- a/resources/lang/en/base.php +++ b/resources/lang/en/base.php @@ -88,6 +88,6 @@ return [ ], 'mail' => [ 'test_succeeded' => 'The test message was sent successfully!', - 'test_failed' => 'Failed to send test message! Check your configuration and try again.', + 'test_failed' => 'Failed to send test message! Error message:', ], ];