fix(swarm): improve error message on false
DialPeerCondition
#4407
Labels
difficulty:easy
getting-started
Issues that can be tackled if you don't know the internals of libp2p very well
help wanted
With
PeerCondition::Disconnected
, dialing an already connected peer results in the following error message:This is not intuitive for newcomers. Something along the lines of the below would be more intuitive:
rust-libp2p/swarm/src/lib.rs
Lines 1583 to 1585 in e36e8ce
See e.g. confusion by user #4395
The text was updated successfully, but these errors were encountered: