Throw 504 where necessary
This commit is contained in:
parent
d3f797bf2a
commit
4964d294f6
3 changed files with 12 additions and 2 deletions
|
@ -80,8 +80,11 @@
|
|||
}
|
||||
}
|
||||
}).fail(function (jqXHR) {
|
||||
console.error(jqXHR);
|
||||
element.find('[data-action="status"]').html('<span class="label label-default">Error</span>');
|
||||
if (jqXHR.status === 504) {
|
||||
element.find('[data-action="status"]').html('<span class="label label-default">Gateway Timeout</span>');
|
||||
} else {
|
||||
element.find('[data-action="status"]').html('<span class="label label-default">Error</span>');
|
||||
}
|
||||
});
|
||||
}).promise().done(function () {
|
||||
setTimeout(updateServerStatus, 10000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue