Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit bb2d018

Browse files
Emit error object in case of ConnectionError
1 parent 540a3a1 commit bb2d018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ Client.prototype.connect = function connect() {
12231223
self.log.debug('failed to connect after %d attempts', failAfter);
12241224
// Communicate the last-encountered error
12251225
if (err instanceof ConnectionError) {
1226-
self.emit('connectTimeout');
1226+
self.emit('connectTimeout', err);
12271227
} else {
12281228
self.emit('error', err);
12291229
}

0 commit comments

Comments
 (0)