diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-07 00:53:06 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-05-07 01:43:05 +0200 |
commit | 9d6c70c656052e1c4f7df7a255c4f493d56f08c8 (patch) | |
tree | 01ef018b9cc3d7c7019bd36598f7472f4e0abb09 /lib | |
parent | ce11514ac83f11d6762fd38b01d7846d617402f8 (diff) | |
download | bugzilla-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.js | 3 | ||||
-rw-r--r-- | lib/main.js | 1 |
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"); |