[#1535] morph: Unify client creation error messages
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
281d65435e
commit
6c679d1535
5 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,7 @@ func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8,
|
|||
|
||||
staticClient, err := client.NewStatic(cli, contract, fee, ([]client.StaticClientOption)(*o)...)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not create static client of Balance contract: %w", err)
|
||||
return nil, fmt.Errorf("create 'balance' contract client: %w", err)
|
||||
}
|
||||
|
||||
return &Client{
|
||||
|
|
|
@ -48,7 +48,7 @@ func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8,
|
|||
|
||||
sc, err := client.NewStatic(cli, contract, fee, o.staticOpts...)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't create container static client: %w", err)
|
||||
return nil, fmt.Errorf("create 'container' contract client: %w", err)
|
||||
}
|
||||
|
||||
return &Client{client: sc}, nil
|
||||
|
|
|
@ -35,7 +35,7 @@ func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8,
|
|||
|
||||
sc, err := client.NewStatic(cli, contract, fee, ([]client.StaticClientOption)(*o)...)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not create client of FrostFS contract: %w", err)
|
||||
return nil, fmt.Errorf("create 'frostfs' contract client: %w", err)
|
||||
}
|
||||
|
||||
return &Client{client: sc}, nil
|
||||
|
|
|
@ -27,7 +27,7 @@ var _ frostfsidcore.SubjectProvider = (*Client)(nil)
|
|||
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8) (*Client, error) {
|
||||
sc, err := client.NewStatic(cli, contract, fee, client.TryNotary(), client.AsAlphabet())
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not create client of FrostFS ID contract: %w", err)
|
||||
return nil, fmt.Errorf("create 'frostfsid' contract client: %w", err)
|
||||
}
|
||||
|
||||
return &Client{client: sc}, nil
|
||||
|
|
|
@ -52,7 +52,7 @@ func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8,
|
|||
|
||||
sc, err := client.NewStatic(cli, contract, fee, ([]client.StaticClientOption)(*o)...)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't create netmap static client: %w", err)
|
||||
return nil, fmt.Errorf("create 'netmap' contract client: %w", err)
|
||||
}
|
||||
|
||||
return &Client{client: sc}, nil
|
||||
|
|
Loading…
Reference in a new issue