aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/rpcutils.js
diff options
context:
space:
mode:
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));
};
-