Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo De Caro <[email protected]>
  • Loading branch information
adecaro committed Nov 18, 2024
1 parent 0483a94 commit 0f612fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration/token/common/sdk/fall/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewFrom(sdk dig2.SDK) *SDK {

func (p *SDK) Install() error {
err := errors.Join(
p.Container().Provide(fabric.NewDriver, dig.Group("network-drivers")),
p.Container().Provide(fabric.NewGenericDriver, dig.Group("network-drivers")),
p.Container().Provide(fabtoken.NewDriver, dig.Group("token-drivers")),
p.Container().Provide(dlog.NewDriver, dig.Group("token-drivers")),
)
Expand Down
1 change: 1 addition & 0 deletions token/sdk/dig/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ func registerNetworkDrivers(in struct {
NetworkProvider *network.Provider
Drivers []driver3.Driver `group:"network-drivers"`
}) {
logger.Debugf("registering [%d] network drivers", len(in.Drivers))
for _, d := range in.Drivers {
in.NetworkProvider.RegisterDriver(d)
}
Expand Down
2 changes: 1 addition & 1 deletion token/services/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func (np *Provider) newNetwork(network string, channel string) (*Network, error)
logger.Debugf("new network [%s:%s]", network, channel)
return &Network{n: nw}, nil
}
return nil, errors.Errorf("no network driver found for [%s:%s], errs [%v]", network, channel, errs)
return nil, errors.Errorf("no network driver found for [%s:%s] among [%d] available, errs [%v]", network, channel, len(np.drivers), errs)
}

func (np *Provider) Normalize(opt *token.ServiceOptions) (*token.ServiceOptions, error) {
Expand Down

0 comments on commit 0f612fb

Please sign in to comment.