peer_manager.nim: better feedback if can't dial peer with WakuMetadataCodec (#2230)

This commit is contained in:
Ivan FB 2023-11-21 14:54:45 +01:00 committed by GitHub
parent 8c5666d200
commit c973b85069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ proc onPeerEvent(pm: PeerManager, peerId: PeerId, event: PeerEvent) {.async.} =
try:
conn = await pm.switch.dial(peerId, WakuMetadataCodec)
except CatchableError:
reason = "waku metadata codec not supported"
reason = "waku metadata codec not supported: " & getCurrentExceptionMsg()
break wakuMetadata
# request metadata from connecting peer