From 79bdca3d902ce7e45d283c58eb1907673a33a481 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 20 Mar 2013 22:32:03 -0500 Subject: [PATCH] Patch getJSON to not continue if JSON is bad --- get-info.js | 1 + 1 file changed, 1 insertion(+) diff --git a/get-info.js b/get-info.js index 135fc085..2554d06b 100644 --- a/get-info.js +++ b/get-info.js @@ -23,6 +23,7 @@ function getJSON(options, callback) { } catch(e) { console.log("JSON fail: " + options); + return; } callback(res.statusCode, data); });