diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-05 12:02:51 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-05-05 12:02:51 +0200 |
commit | 2a8cfd4c1b55125d3211694496cea35cc9603ff9 (patch) | |
tree | e6c6da389e2a09b0fa63843d415e3b6a949c8ae2 /lib | |
parent | 4e16d673820bc63d746a399d7d2ee58e9fbaca85 (diff) | |
download | bugzilla-triage-2a8cfd4c1b55125d3211694496cea35cc9603ff9.tar.gz |
Make the script more reliable against JSON-hosting sites being down.
Fixes #92
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libbugzilla.js | 2 |
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(); |