aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libbugzilla.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-07 00:53:06 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-05-07 01:43:05 +0200
commit9d6c70c656052e1c4f7df7a255c4f493d56f08c8 (patch)
tree01ef018b9cc3d7c7019bd36598f7472f4e0abb09 /lib/libbugzilla.js
parentce11514ac83f11d6762fd38b01d7846d617402f8 (diff)
downloadbugzilla-triage-9d6c70c656052e1c4f7df7a255c4f493d56f08c8.tar.gz
Another massive cleanup and simplification of tweak scripts.
bugs on bugzilla.mozilla.org now work as well, although the history is still not shown inline, which remains for 1.1. Fixes #88
Diffstat (limited to 'lib/libbugzilla.js')
-rw-r--r--lib/libbugzilla.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js
index ae4ea01..0eba70b 100644
--- a/lib/libbugzilla.js
+++ b/lib/libbugzilla.js
@@ -364,6 +364,9 @@ var makeJSONRPCCall = exports.makeJSONRPCCall = function makeJSONRPCCall(url, me
onComplete: function(response) {
if (response.status == 200) {
debug("makeJSONRPCCall: in = " + response.text);
+ if ("error" in response.json) {
+ throw new Error("Error in JSON-RPC call:\n" + response.json.error);
+ }
callback(response.json.result);
}
},