aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/libbugzilla.js3
-rw-r--r--lib/main.js1
2 files changed, 4 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);
}
},
diff --git a/lib/main.js b/lib/main.js
index 431ffe6..1fc60cf 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -211,3 +211,4 @@ contextMenu.Item({
require("clipboard").set(comment);
}
});
+tabs.open("https://bugzilla.mozilla.org/show_bug.cgi?id=473002");