From c603f0a1a2985bf225786122beeaf248ca87cd99 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 5 May 2011 12:02:51 +0200 Subject: Make the script more reliable against JSON-hosting sites being down. Fixes #92 --- lib/libbugzilla.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index a1792ea..3763eff 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -379,6 +379,8 @@ exports.initialize = function initialize(config, callback) { onComplete: function(response) { if (response.status == 200) { config.constantData[title] = response.json; + } else { + console.error("Cannot download " + title + " from URL " + url); } } }).get(); -- cgit