ping: cleanup error message

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
Steven Allen 2019-05-08 23:12:12 -07:00
parent 3c9be59c95
commit 6e2858e8b6

View File

@ -75,7 +75,7 @@ trip latency information.
numPings, _ := req.Options[pingCountOptionName].(int)
if numPings <= 0 {
return fmt.Errorf("error: ping count must be greater than 0, was %d", numPings)
return fmt.Errorf("ping count must be greater than 0, was %d", numPings)
}
if len(n.Peerstore.Addrs(pid)) == 0 {