Only show if we don't know why we failed to ping.

This commit is contained in:
Cryptkeeper 2015-11-24 17:34:28 -06:00
parent 5012cd7771
commit aed7947f5a

@ -126,10 +126,12 @@ function updateServerStatus(lastEntry) {
div.html(newStatus);
} else {
var newStatus = '<span class="color-red">Failed to ping!';
var newStatus = '<br /><span class="color-red">';
if (findErrorMessage(lastEntry.error)) {
newStatus += '<br />' + findErrorMessage(lastEntry.error);
newStatus += findErrorMessage(lastEntry.error);
} else {
newStatus += 'Failed to ping!';
}
div.html(newStatus + '</span>');