mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
netharness: properly return all errors during lightningNode.start()
This commit is contained in:
parent
8608ffba15
commit
c31c980f82
1 changed files with 2 additions and 2 deletions
|
@ -205,7 +205,7 @@ func (l *lightningNode) start(lndError chan error) error {
|
|||
}
|
||||
conn, err := grpc.Dial(l.rpcAddr, opts...)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
l.LightningClient = lnrpc.NewLightningClient(conn)
|
||||
|
@ -214,7 +214,7 @@ func (l *lightningNode) start(lndError chan error) error {
|
|||
ctxb := context.Background()
|
||||
info, err := l.GetInfo(ctxb, &lnrpc.GetInfoRequest{})
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
l.PubKeyStr = info.IdentityPubkey
|
||||
|
|
Loading…
Add table
Reference in a new issue