mirror of https://github.com/waku-org/nwaku.git
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…
Reference in New Issue