mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Patch getJSON to not continue if JSON is bad
This commit is contained in:
parent
84917ecc4f
commit
79bdca3d90
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ function getJSON(options, callback) {
|
|||
}
|
||||
catch(e) {
|
||||
console.log("JSON fail: " + options);
|
||||
return;
|
||||
}
|
||||
callback(res.statusCode, data);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue