Patch getJSON to not continue if JSON is bad

This commit is contained in:
calzoneman 2013-03-20 22:32:03 -05:00
parent 84917ecc4f
commit 79bdca3d90
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ function getJSON(options, callback) {
}
catch(e) {
console.log("JSON fail: " + options);
return;
}
callback(res.statusCode, data);
});