mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -08:00
More in depth error reporting on mail test failure
This commit is contained in:
parent
c8d588871c
commit
6a2e21f502
|
@ -401,7 +401,11 @@
|
|||
$("#mailtesticon").html('<i class="fa fa-exclamation-triangle text-danger"></i>');
|
||||
$('#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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue