netharness: properly return all errors during lightningNode.start()
This commit is contained in:
parent
8608ffba15
commit
c31c980f82
@ -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…
Reference in New Issue
Block a user