diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-07 00:53:06 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 14:53:46 +0200 |
commit | 8e501abd49e5aeac70a84ceef96a72b5078df221 (patch) | |
tree | 2cb8df170588aaee5872b752d11d6a6c39a766cc /lib/libbugzilla.js | |
parent | 59d6e1bf4e439febbc40c15486303e12febb7e42 (diff) | |
download | bugzilla-triage-8e501abd49e5aeac70a84ceef96a72b5078df221.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.js | 3 |
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); } }, |