mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -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>');
|
$("#mailtesticon").html('<i class="fa fa-exclamation-triangle text-danger"></i>');
|
||||||
$('#mailteststatus').html('Mail could not be sent.');
|
$('#mailteststatus').html('Mail could not be sent.');
|
||||||
if (data.responseJSON) {
|
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 {
|
} else {
|
||||||
console.dir(data);
|
console.dir(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue