Skip to content

Commit

Permalink
Merge pull request #150 from pattyland/patch-2
Browse files Browse the repository at this point in the history
Improve javascript console error logging
  • Loading branch information
bb-Ricardo authored Feb 14, 2021
2 parents 86a911d + fb39697 commit a76887e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ $(document).ready(function() {

$("#status").html("Ready");
})
.fail(function(errorThrown) {
console.log("error: " + errorThrown);
.fail(function(jqXHR, textStatus, error) {
console.log("Request failed: " + textStatus + " responseText: " + jqXHR.responseText);
});
});

Expand Down Expand Up @@ -551,4 +551,4 @@ function updateDisplayedFields(pattern = null) {
$("#form-group-twinkleDensity").removeClass("hidden");
}

}
}

0 comments on commit a76887e

Please sign in to comment.