mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 22:50:54 +00:00
improve error message in basic host
This commit is contained in:
@ -290,7 +290,9 @@ class BasicHost(IHost):
|
|||||||
)
|
)
|
||||||
if protocol is None:
|
if protocol is None:
|
||||||
await net_stream.reset()
|
await net_stream.reset()
|
||||||
raise StreamFailure("No protocol selected")
|
raise StreamFailure(
|
||||||
|
"Failed to negotiate protocol: no protocol selected"
|
||||||
|
)
|
||||||
except MultiselectError as error:
|
except MultiselectError as error:
|
||||||
peer_id = net_stream.muxed_conn.peer_id
|
peer_id = net_stream.muxed_conn.peer_id
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
|||||||
Reference in New Issue
Block a user