Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
provide console warning on bad JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Jul 19, 2014
1 parent f4cf88f commit 7be106f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core-ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@
try {
return JSON.parse(r);
} catch (x) {
console.warn('core-ajax caught an exception trying to parse reponse as JSON:');
console.warn('url:', this.url);
console.warn(x);
return r;
}
},
Expand Down

0 comments on commit 7be106f

Please sign in to comment.