diff options
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"); |