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); });