aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/rpcutils.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2012-09-15 10:38:59 +0200
committerMatěj Cepl <mcepl@redhat.com>2012-09-19 08:19:50 +0200
commitb18e93d73dadacb1d36f0e0fa7a19bbb188e8d75 (patch)
tree3c110c085d8a8a8b2734a68d7c0a60ba3cb06728 /data/lib/rpcutils.js
parent065050a6a64761ca9e76ea4bbd9b90343c1ccfa4 (diff)
downloadbugzilla-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.js3
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));
};
-