Skip to content

Commit

Permalink
Catch and display status errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
brittainhard committed Nov 9, 2015
1 parent b69851a commit 5dfea14
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/base/static/base/js/crawl.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ $( document ).ready(function() {
}

function onOffStatus(status){
onOffGroup(statuses.states[status]["disabled"], statuses.buttons, true);
onOffGroup(statuses.states[status]["enabled"], statuses.buttons, false);
try{
onOffGroup(statuses.states[status]["disabled"], statuses.buttons, true);
onOffGroup(statuses.states[status]["enabled"], statuses.buttons, false);
}catch(err){
console.log("ERROR: Failed to render status " + status + " on crawl dashboard.");
}
}

function statusCall(){
Expand Down

0 comments on commit 5dfea14

Please sign in to comment.