Skip to content

Commit

Permalink
[FAB-7864] fabsdk config err should return wrapped err
Browse files Browse the repository at this point in the history
Change-Id: I78cef2f406747efab46230c3c9d3c3bcfe901fc5
Signed-off-by: Troy Ronda <[email protected]>
  • Loading branch information
troyronda committed Jan 23, 2018
1 parent 48a3c93 commit 23e4a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fabsdk/fabsdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func New(cp apiconfig.ConfigProvider, opts ...Option) (*FabricSDK, error) {
pkgSuite := defPkgSuite{}
config, err := cp()
if err != nil {
return nil, errors.New("unable to load configuration")
return nil, errors.WithMessage(err, "unable to load configuration")
}
return fromPkgSuite(config, &pkgSuite, opts...)
}
Expand Down

0 comments on commit 23e4a06

Please sign in to comment.