diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-09-15 10:38:59 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-09-19 08:19:50 +0200 |
commit | b18e93d73dadacb1d36f0e0fa7a19bbb188e8d75 (patch) | |
tree | 3c110c085d8a8a8b2734a68d7c0a60ba3cb06728 /data/lib/rpcutils.js | |
parent | 065050a6a64761ca9e76ea4bbd9b90343c1ccfa4 (diff) | |
download | bugzilla-triage-b18e93d73dadacb1d36f0e0fa7a19bbb188e8d75.tar.gz |
Fix calls of bugzilla.updateAttachMimeType to the new API.
Bugzilla guys are working on fix, but they provided workaround.
Fixes #124
Diffstat (limited to 'data/lib/rpcutils.js')
-rw-r--r-- | data/lib/rpcutils.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/data/lib/rpcutils.js b/data/lib/rpcutils.js index 74b3ded..b0af0ef 100644 --- a/data/lib/rpcutils.js +++ b/data/lib/rpcutils.js @@ -26,7 +26,7 @@ function makeJSONRPCCall(method, params, callback) { var JSONresponse = JSON.parse(req.responseText); if ("error" in JSONresponse) { throw new Error("Error in JSON-RPC call:\n" + - JSONresponse.error); + JSONresponse.error.toSource()); } callback(JSONresponse); } @@ -38,4 +38,3 @@ function makeJSONRPCCall(method, params, callback) { req.setRequestHeader('Content-Type', "application/json"); req.send(JSON.stringify(msg)); }; - |