mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
peer_manager.nim: better feedback if can't dial peer with WakuMetadataCodec (#2230)
This commit is contained in:
parent
8c5666d200
commit
c973b85069
@ -331,7 +331,7 @@ proc onPeerEvent(pm: PeerManager, peerId: PeerId, event: PeerEvent) {.async.} =
|
|||||||
try:
|
try:
|
||||||
conn = await pm.switch.dial(peerId, WakuMetadataCodec)
|
conn = await pm.switch.dial(peerId, WakuMetadataCodec)
|
||||||
except CatchableError:
|
except CatchableError:
|
||||||
reason = "waku metadata codec not supported"
|
reason = "waku metadata codec not supported: " & getCurrentExceptionMsg()
|
||||||
break wakuMetadata
|
break wakuMetadata
|
||||||
|
|
||||||
# request metadata from connecting peer
|
# request metadata from connecting peer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user