forked from TrueCloudLab/frostfs-node
[#1558] morph/client: Remove "could not"/"can't"/"failed to" from error messages
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
91d9dc2676
commit
7151c71d51
19 changed files with 55 additions and 55 deletions
|
@ -196,7 +196,7 @@ func (c *Client) Invoke(ctx context.Context, contract util.Uint160, fee fixedn.F
|
|||
|
||||
txHash, vub, err := c.rpcActor.SendTunedCall(contract, method, nil, addFeeCheckerModifier(int64(fee)), args...)
|
||||
if err != nil {
|
||||
return InvokeRes{}, fmt.Errorf("could not invoke %s: %w", method, err)
|
||||
return InvokeRes{}, fmt.Errorf("invoke %s: %w", method, err)
|
||||
}
|
||||
|
||||
c.logger.Debug(ctx, logs.ClientNeoClientInvoke,
|
||||
|
@ -509,7 +509,7 @@ func (c *Client) NeoFSAlphabetList() (res keys.PublicKeys, err error) {
|
|||
|
||||
list, err := c.roleList(noderoles.NeoFSAlphabet)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't get alphabet nodes role list: %w", err)
|
||||
return nil, fmt.Errorf("get alphabet nodes role list: %w", err)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
|
@ -523,7 +523,7 @@ func (c *Client) GetDesignateHash() util.Uint160 {
|
|||
func (c *Client) roleList(r noderoles.Role) (keys.PublicKeys, error) {
|
||||
height, err := c.rpcActor.GetBlockCount()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't get chain height: %w", err)
|
||||
return nil, fmt.Errorf("get chain height: %w", err)
|
||||
}
|
||||
|
||||
return c.rolemgmt.GetDesignatedByRole(r, height)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue