From 1bd9fd12f18f7cc7415e6a084096d7f1b708b786 Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Mon, 30 Sep 2013 10:53:56 +0800 Subject: [PATCH] Ensure error log tries to update even on failure --- testing/MCTXWeb/public_html/static/mctx.gui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing/MCTXWeb/public_html/static/mctx.gui.js b/testing/MCTXWeb/public_html/static/mctx.gui.js index 606c0be..247484d 100644 --- a/testing/MCTXWeb/public_html/static/mctx.gui.js +++ b/testing/MCTXWeb/public_html/static/mctx.gui.js @@ -193,7 +193,10 @@ $.fn.setErrorLog = function () { ); setTimeout(updater, 1000); }).fail(function (jqXHR) { - outdiv.text("Failed to retrieve the error log."); + if (jqXHR.status === 502 || jqXHR.status === 0) { + outdiv.text("Failed to retrieve the error log."); + } + setTimeout(updater, 1500); }); }; -- 2.20.1