Skip to content

Commit eafb934

Browse files
committed
fix: if dial errors already have codes, just rethrow them
1 parent 080a1b3 commit eafb934

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transport-manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class TransportManager {
8484
try {
8585
return await transport.dial(ma, options)
8686
} catch (err) {
87+
if (err.code) throw err
8788
throw errCode(err, codes.ERR_TRANSPORT_DIAL_FAILED)
8889
}
8990
}

0 commit comments

Comments
 (0)