fix reference to this within a callback
(cherry picked from commit 9d3b966f63)
This commit is contained in:
@ -419,7 +419,7 @@ Transport.prototype.sniff = function (cb) {
|
||||
try {
|
||||
hostsConfigs = nodesToHostCallback(resp.nodes);
|
||||
} catch (e) {
|
||||
log.error(new Error('Unable to convert node list from ' + this.sniffEndpoint +
|
||||
log.error(new Error('Unable to convert node list from ' + self.sniffEndpoint +
|
||||
' to hosts durring sniff. Encountered error:\n' + (e.stack || e.message)));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user