mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
pilot: improve error when unable to reach any of a peer's addresses
This commit is contained in:
parent
e1a4657427
commit
0a2986355e
1 changed files with 2 additions and 2 deletions
4
pilot.go
4
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,
|
// If we weren't able to establish a connection at all,
|
||||||
// then we'll error out.
|
// then we'll error out.
|
||||||
if !connected {
|
if !connected {
|
||||||
return false, fmt.Errorf("unable to connect "+
|
return false, errors.New("exhausted all " +
|
||||||
"to %x", target.SerializeCompressed())
|
"advertised addresses")
|
||||||
}
|
}
|
||||||
|
|
||||||
return false, nil
|
return false, nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue