add exception message to fail message for mail test
This commit is contained in:
parent
df9f0be839
commit
8b61175c3b
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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:',
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue