Skip to content

Commit

Permalink
Merge pull request #94 from s7techlab/discovery_conn_err
Browse files Browse the repository at this point in the history
discovery connection error
  • Loading branch information
bogatyr285 committed Feb 21, 2022
2 parents 832d472 + 13ef3ba commit 5b5ac02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ func NewCore(mspId string, identity api.Identity, opts ...CoreOpt) (api.Core, er
// discovery initialized, add local peers to the pool
lDiscoverer, err := core.discoveryProvider.LocalPeers(core.ctx)
if err != nil {
return nil, errors.Wrap(err, `failed to fetch local peers`)
return nil, fmt.Errorf(`fetch local peers from discovery provider connection=%s: %w`,
core.config.Discovery.Connection.Host, err)
}

peers := lDiscoverer.Peers()
Expand Down

0 comments on commit 5b5ac02

Please sign in to comment.