diff --git a/assets/js/site.js b/assets/js/site.js index 59d0bef..8e2beac 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -126,10 +126,12 @@ function updateServerStatus(lastEntry) { div.html(newStatus); } else { - var newStatus = 'Failed to ping!'; + var newStatus = '
'; if (findErrorMessage(lastEntry.error)) { - newStatus += '
' + findErrorMessage(lastEntry.error); + newStatus += findErrorMessage(lastEntry.error); + } else { + newStatus += 'Failed to ping!'; } div.html(newStatus + '
');