pilot: improve error when unable to reach any of a peer's addresses

This commit is contained in:
Wilmer Paulino 2018-08-29 02:04:54 -07:00
parent e1a4657427
commit 0a2986355e
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -160,8 +160,8 @@ func initAutoPilot(svr *server, cfg *autoPilotConfig) (*autopilot.Agent, error)
// If we weren't able to establish a connection at all,
// then we'll error out.
if !connected {
return false, fmt.Errorf("unable to connect "+
"to %x", target.SerializeCompressed())
return false, errors.New("exhausted all " +
"advertised addresses")
}
return false, nil