Adding more detailed logging with host and port when there are RPC connection issues

This commit is contained in:
Philip Hutchins 2014-11-26 23:04:15 -05:00
parent 3e43d79b6e
commit cd69983c31

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