Skip to content

Commit

Permalink
fix error message (#2998)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Mar 27, 2024
1 parent ef25209 commit bf8c671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function setupTimeout (onConnectTimeout, timeout) {
function onConnectTimeout (socket) {
let message = 'Connect Timeout Error'
if (Array.isArray(socket.autoSelectFamilyAttemptedAddresses)) {
message = +` (attempted addresses: ${socket.autoSelectFamilyAttemptedAddresses.join(', ')})`
message += ` (attempted addresses: ${socket.autoSelectFamilyAttemptedAddresses.join(', ')})`
}
util.destroy(socket, new ConnectTimeoutError(message))
}
Expand Down

0 comments on commit bf8c671

Please sign in to comment.