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
|
@ -25,7 +25,7 @@ func (c *Client) Epoch() (uint64, error) {
|
|||
|
||||
num, err := client.IntFromStackItem(items[0])
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("could not get number from stack item (%s): %w", epochMethod, err)
|
||||
return 0, fmt.Errorf("get number from stack item (%s): %w", epochMethod, err)
|
||||
}
|
||||
return uint64(num), nil
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ func (c *Client) LastEpochBlock() (uint32, error) {
|
|||
|
||||
block, err := client.IntFromStackItem(items[0])
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("could not get number from stack item (%s): %w",
|
||||
return 0, fmt.Errorf("get number from stack item (%s): %w",
|
||||
lastEpochBlockMethod, err)
|
||||
}
|
||||
return uint32(block), nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue