Skip to content

Commit

Permalink
[FAB-8782] Check correct err in connection
Browse files Browse the repository at this point in the history
Change-Id: Iff46d7dc2a297dcc60e2f6afb9a547e4ffea175b
Signed-off-by: Troy Ronda <[email protected]>
  • Loading branch information
troyronda committed Mar 12, 2018
1 parent 96a926d commit f2c267a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fab/comm/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func NewConnection(ctx fabcontext.Client, chConfig fab.ChannelCfg, streamProvide

stream, err := streamProvider(grpcconn)
if err != nil {
if closeErr := grpcconn.Close(); err != nil {
if closeErr := grpcconn.Close(); closeErr != nil {
logger.Warnf("error closing GRPC connection: %s", closeErr)
}
return nil, errors.Wrapf(err, "could not create stream to %s", url)
Expand Down

0 comments on commit f2c267a

Please sign in to comment.