Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 23e4a06

Browse files
committed
[FAB-7864] fabsdk config err should return wrapped err
Change-Id: I78cef2f406747efab46230c3c9d3c3bcfe901fc5 Signed-off-by: Troy Ronda <troy@troyronda.com>
1 parent 48a3c93 commit 23e4a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fabsdk/fabsdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func New(cp apiconfig.ConfigProvider, opts ...Option) (*FabricSDK, error) {
5050
pkgSuite := defPkgSuite{}
5151
config, err := cp()
5252
if err != nil {
53-
return nil, errors.New("unable to load configuration")
53+
return nil, errors.WithMessage(err, "unable to load configuration")
5454
}
5555
return fromPkgSuite(config, &pkgSuite, opts...)
5656
}

0 commit comments

Comments
 (0)