@cryptotaxi247 / kubo / commits / 6e2858e8b

ping: cleanup error message

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed May 8, 2019 at 23:12 UTC 6e2858e8b678d583cee28a02a9fa3fa2bec65806
1 file changed +1 -1
core/commands/ping.go
+1 -1
@@ -75,7 +75,7 @@ trip latency information.
75
76 numPings, _ := req.Options[pingCountOptionName].(int)
77 if numPings <= 0 {
78 - return fmt.Errorf("error: ping count must be greater than 0, was %d", numPings)
78 + return fmt.Errorf("ping count must be greater than 0, was %d", numPings)
79 }
80
81 if len(n.Peerstore.Addrs(pid)) == 0 {