mirror of https://github.com/calzoneman/sync.git
Patch getJSON to not continue if JSON is bad
This commit is contained in:
parent
84917ecc4f
commit
79bdca3d90
|
@ -23,6 +23,7 @@ function getJSON(options, callback) {
|
|||
}
|
||||
catch(e) {
|
||||
console.log("JSON fail: " + options);
|
||||
return;
|
||||
}
|
||||
callback(res.statusCode, data);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue