We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6f70b commit 984f13eCopy full SHA for 984f13e
packages/libp2p/src/upgrader.ts
@@ -641,7 +641,8 @@ export class DefaultUpgrader implements Upgrader {
641
protocol
642
}
643
} catch (err: any) {
644
- throw new CodeError(String(err), codes.ERR_ENCRYPTION_FAILED)
+ connection.log.error('encrypting inbound connection to %p failed', err)
645
+ throw new CodeError(err.message, codes.ERR_ENCRYPTION_FAILED)
646
647
648
@@ -677,7 +678,8 @@ export class DefaultUpgrader implements Upgrader {
677
678
679
680
681
+ connection.log.error('encrypting outbound connection to %p failed', err)
682
683
684
685
0 commit comments