aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-05 12:02:51 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:51:41 +0200
commitc603f0a1a2985bf225786122beeaf248ca87cd99 (patch)
tree4c2523d9d06abef983c9feb3cd93ccc6a3ad6d82 /lib
parent45213cd6b0810fd74eede4c06fae768350f10e9f (diff)
downloadbugzilla-triage-c603f0a1a2985bf225786122beeaf248ca87cd99.tar.gz
Make the script more reliable against JSON-hosting sites being down.
Fixes #92
Diffstat (limited to 'lib')
-rw-r--r--lib/libbugzilla.js2
1 files changed, 2 insertions, 0 deletions
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();