forked from TrueCloudLab/frostfs-node
[#1535] morph: Unify test invoke error messages
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
e37dcdf88b
commit
e3487d5af5
12 changed files with 20 additions and 18 deletions
|
@ -14,7 +14,7 @@ func (c *Client) Epoch() (uint64, error) {
|
|||
|
||||
items, err := c.client.TestInvoke(prm)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("could not perform test invocation (%s): %w",
|
||||
return 0, fmt.Errorf("test invoke (%s): %w",
|
||||
epochMethod, err)
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ func (c *Client) LastEpochBlock() (uint32, error) {
|
|||
|
||||
items, err := c.client.TestInvoke(prm)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("could not perform test invocation (%s): %w",
|
||||
return 0, fmt.Errorf("test invoke (%s): %w",
|
||||
lastEpochBlockMethod, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue