From aed7947f5a1ac24eb6903d4d580b8e8bab746047 Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Tue, 24 Nov 2015 17:34:28 -0600 Subject: [PATCH] Only show if we don't know why we failed to ping. --- assets/js/site.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 + '
');