From 6a2e21f502359751173f3295a20988ba0cfb77ea Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 Nov 2020 13:22:49 -0800 Subject: [PATCH] More in depth error reporting on mail test failure --- resources/views/settings/general.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index 63cd6676ed..cd63276d37 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -401,7 +401,11 @@ $("#mailtesticon").html(''); $('#mailteststatus').html('Mail could not be sent.'); if (data.responseJSON) { - $('#mailteststatus-error').html('Error: ' + data.responseJSON.messages); + if (data.responseJSON.messages) { + $('#mailteststatus-error').html('Error: ' + data.responseJSON.messages); + } else { + $('#mailteststatus-error').html('No additional error message provided. Check your mail settings and your app log.'); + } } else { console.dir(data); }