mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +08:00
ping: better peer addr parsing error
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -84,7 +84,7 @@ trip latency information.
|
||||
|
||||
addr, peerID, err := ParsePeerParam(req.Arguments()[0])
|
||||
if err != nil {
|
||||
res.SetError(err, cmdkit.ErrNormal)
|
||||
res.SetError(fmt.Errorf("failed to parse peer address '%s': %s", req.Arguments()[0], err), cmdkit.ErrNormal)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user