Skip to content

Commit

Permalink
Merge pull request bitpay#589 from phutchins/master
Browse files Browse the repository at this point in the history
Adding more detailed logging  with host and port when there are RPC conn...
  • Loading branch information
maraoz committed Dec 1, 2014
2 parents 38b69f4 + cd69983 commit b1a7a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RpcClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit b1a7a99

Please sign in to comment.