diff --git a/resources/themes/pterodactyl/admin/settings/mail.blade.php b/resources/themes/pterodactyl/admin/settings/mail.blade.php index b2ca70bd9..6d6a3b269 100644 --- a/resources/themes/pterodactyl/admin/settings/mail.blade.php +++ b/resources/themes/pterodactyl/admin/settings/mail.blade.php @@ -158,14 +158,16 @@ function showErrorDialog(jqXHR, verb) { console.error(jqXHR); - var errorText; + var errorText = ''; if (!jqXHR.responseJSON) { errorText = jqXHR.responseText; } else if (jqXHR.responseJSON.error) { errorText = jqXHR.responseJSON.error; } else if (jqXHR.responseJSON.errors) { $.each(jqXHR.responseJSON.errors, function (i, v) { - errorText += ', ' + v.detail; + if (v.detail) { + errorText += v.detail + ' '; + } }); }