From 0a2986355e21c28c0cccf2c4c618eef7f0e05367 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Wed, 29 Aug 2018 02:04:54 -0700 Subject: [PATCH] pilot: improve error when unable to reach any of a peer's addresses --- pilot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pilot.go b/pilot.go index f218787b..c745082c 100644 --- a/pilot.go +++ b/pilot.go @@ -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