diff --git a/lib/routes.js b/lib/routes.js index 824485b9..421acd69 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -103,14 +103,12 @@ function verifyTx(req, res) { function send(req, res) { plugins.sendBitcoins(getFingerprint(req), req.body, function(err, status) { // TODO: use status.statusCode here after confirming machine compatibility - var j = { + res.json({ errType: err && err.name, err: err && err.message, txHash: status && status.txHash, txId: status && status.txId - }; - logger.debug('send: %j', j); - res.json(j); + }); }); }