@elastic/elasticsearch-canary
Advanced tools
Comparing version 7.16.0-canary.3 to 7.16.0-canary.4
@@ -116,3 +116,10 @@ /* | ||
this._openRequests-- | ||
callback(new ConnectionError(err.message), null) | ||
let message = err.message | ||
if (err.code === 'ECONNRESET') { | ||
/* istanbul ignore next */ | ||
const socket = request.socket || {} | ||
/* istanbul ignore next */ | ||
message += ` - Local: ${socket.localAddress || 'unknown'}:${socket.localPort || 'unknown'}, Remote: ${socket.remoteAddress || 'unknown'}:${socket.remotePort || 'unknown'}` | ||
} | ||
callback(new ConnectionError(message), null) | ||
} | ||
@@ -119,0 +126,0 @@ |
@@ -14,4 +14,4 @@ { | ||
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", | ||
"version": "7.16.0-canary.3", | ||
"versionCanary": "7.16.0-canary.3", | ||
"version": "7.16.0-canary.4", | ||
"versionCanary": "7.16.0-canary.4", | ||
"keywords": [ | ||
@@ -107,3 +107,3 @@ "elasticsearch", | ||
}, | ||
"commitHash": "34a168dd" | ||
"commitHash": "8ad6d993" | ||
} |
36338
1991981
104