forked from TrueCloudLab/frostfs-node
[#1689] morph: Remove frostfsError
type
It has no custom methods defined, only adds `frostfs error: ` prefix to the error message. The utility of this prefix is debatable, failed invocations already have `invocation failed` prefix. Change-Id: If25ebb3679497f3f10acde43b596c81d52351907 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
52367dc9b2
commit
3d771aa21c
4 changed files with 7 additions and 23 deletions
|
@ -98,7 +98,7 @@ func StringFromStackItem(param stackitem.Item) (string, error) {
|
|||
func addFeeCheckerModifier(add int64) func(r *result.Invoke, t *transaction.Transaction) error {
|
||||
return func(r *result.Invoke, t *transaction.Transaction) error {
|
||||
if r.State != HaltState {
|
||||
return wrapFrostFSError(¬HaltStateError{state: r.State, exception: r.FaultException})
|
||||
return ¬HaltStateError{state: r.State, exception: r.FaultException}
|
||||
}
|
||||
|
||||
t.SystemFee += add
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue