Skip to content

A free open source IT asset/license management system

More in depth error reporting on mail test failure

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