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

This commit is contained in:
Olaoluwa Osuntokun committed 2016-11-16 12:44:43 -08:00
1 parent 8608ffba15
commit c31c980f82
1 file changed
+2 -2
+2 -2
View File
@@ -205,7 +205,7 @@ func (l *lightningNode) start(lndError chan error) error {
} }
conn, err := grpc.Dial(l.rpcAddr, opts...) conn, err := grpc.Dial(l.rpcAddr, opts...)
if err != nil { if err != nil {
return nil return err
} }
l.LightningClient = lnrpc.NewLightningClient(conn) l.LightningClient = lnrpc.NewLightningClient(conn)
@@ -214,7 +214,7 @@ func (l *lightningNode) start(lndError chan error) error {
ctxb := context.Background() ctxb := context.Background()
info, err := l.GetInfo(ctxb, &lnrpc.GetInfoRequest{}) info, err := l.GetInfo(ctxb, &lnrpc.GetInfoRequest{})
if err != nil { if err != nil {
return nil return err
} }
l.PubKeyStr = info.IdentityPubkey l.PubKeyStr = info.IdentityPubkey