Skip to content

Commit

Permalink
Adding more detailed logging with host and port when there are RPC co…
Browse files Browse the repository at this point in the history
…nnection issues
  • Loading branch information
Philip Hutchins committed Nov 27, 2014
1 parent 3e43d79 commit cd69983
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 cd69983

Please sign in to comment.