From d115580ae984dd33a08530c06c3ed3c1338e6c37 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Mon, 16 Jan 2017 19:32:30 -0500 Subject: [PATCH] Fixed sendError call. --- lib/services/wallet-api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/wallet-api/index.js b/lib/services/wallet-api/index.js index 457964d7..abfe3233 100644 --- a/lib/services/wallet-api/index.js +++ b/lib/services/wallet-api/index.js @@ -72,7 +72,7 @@ WalletService.prototype._endpointUTXOs = function() { }; self._getUtxos(walletId, height, options, function(err, utxos) { if(err) { - return utils.sendError(err); + return utils.sendError(err, res); } res.status(200).jsonp({ utxos: utxos, @@ -101,7 +101,7 @@ WalletService.prototype._endpointGetBalance= function() { self._getBalance(walletId, height, options, function(err, result) { if(err) { - return utils.sendError(err); + return utils.sendError(err, res); } res.status(200).jsonp(result); });