From: Jeremy Tan Date: Mon, 30 Sep 2013 02:53:56 +0000 (+0800) Subject: Ensure error log tries to update even on failure X-Git-Url: https://git.ucc.asn.au/?p=matches%2FMCTX3420.git;a=commitdiff_plain;h=1bd9fd12f18f7cc7415e6a084096d7f1b708b786 Ensure error log tries to update even on failure --- 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); }); };