netharness: properly return all errors during lightningNode.start()

This commit is contained in:
Olaoluwa Osuntokun 2016-11-16 12:44:39 -08:00
parent 8608ffba15
commit c31c980f82
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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