Skip to content

Commit

Permalink
handle very-slow updates correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
delgod committed Feb 16, 2017
1 parent 2c5f767 commit 3c7ebdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion landing-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@ <h4 class="modal-title">Update</h4>
checkUpdate.fail(function(jqXHR) {
console.log(jqXHR.responseText);
$("#checkLoader").hide();
$("#updateText").text(jqXHR.responseJSON.title);
if (jqXHR.status === 404 ) {
$("#updateText").text(jqXHR.responseJSON.title);
} else {
$("#updateText").text("Unknown issue: " + jqXHR.statusText);
$("#updateRunBtn").show();
}
$("#updateText").show();
});
}
Expand Down
1 change: 1 addition & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@
# Configurator
location /configurator {
proxy_pass http://127.0.0.1:7777;
proxy_read_timeout 86400;
}
}

0 comments on commit 3c7ebdc

Please sign in to comment.