aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libbugzilla.js
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-05-05 12:02:51 +0200
commit2a8cfd4c1b55125d3211694496cea35cc9603ff9 (patch)
treee6c6da389e2a09b0fa63843d415e3b6a949c8ae2 /lib/libbugzilla.js
parent4e16d673820bc63d746a399d7d2ee58e9fbaca85 (diff)
downloadbugzilla-triage-2a8cfd4c1b55125d3211694496cea35cc9603ff9.tar.gz
Make the script more reliable against JSON-hosting sites being down.
Fixes #92
Diffstat (limited to 'lib/libbugzilla.js')
-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();