Merge pull request #589 from phutchins/master

Adding more detailed logging  with host and port when there are RPC conn...
This commit is contained in:
Manuel Aráoz 2014-12-01 13:41:13 -03:00
commit b1a7a9907c

View File

@ -204,7 +204,7 @@ function rpc(request, callback) {
});
});
req.on('error', function(e) {
var err = new Error('Could not connect to bitcoin via RPC: ' + e.message);
var err = new Error('Could not connect to bitcoin via RPC at host: ' + self.host + ' port: ' + self.port + ' Error: ' + e.message);
log.err(err);
callback(err);
});