add exception message to fail message for mail test

This commit is contained in:
ayan4m1 2018-09-15 20:59:55 -04:00
parent df9f0be839
commit 8b61175c3b
2 changed files with 2 additions and 2 deletions

View file

@ -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');
}