Skip to content

Commit 8b61175

Browse files
committed
add exception message to fail message for mail test
1 parent df9f0be commit 8b61175

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Http/Controllers/Admin/Settings/MailController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function test(Request $request): RedirectResponse
128128
Notification::route('mail', $request->user()->email)
129129
->notify(new MailTested($request->user()));
130130
} catch (Exception $exception) {
131-
$this->alert->danger(trans('base.mail.test_failed'))->flash();
131+
$this->alert->danger(trans('base.mail.test_failed') . ' ' . $exception->getMessage())->flash();
132132

133133
return redirect()->route('admin.settings.mail');
134134
}

resources/lang/en/base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@
8888
],
8989
'mail' => [
9090
'test_succeeded' => 'The test message was sent successfully!',
91-
'test_failed' => 'Failed to send test message! Check your configuration and try again.',
91+
'test_failed' => 'Failed to send test message! Error message:',
9292
],
9393
];

0 commit comments

Comments
 (0)