From fcde3b927f19c5a520543c9b42645c9c29a66526 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 25 Mar 2015 16:02:31 -0300 Subject: [PATCH] catch all errors --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index ea00954..8864375 100644 --- a/lib/server.js +++ b/lib/server.js @@ -522,7 +522,7 @@ WalletService.prototype._selectTxInputs = function(txp, cb) { return cb(new ClientError('DUSTAMOUNT', 'Amount below dust threshold')); } - return cb(error); + return cb(bitcoreError || new Error('Could not select tx inputs')); }); };