forked from TrueCloudLab/frostfs-node
9f7a22e2aa
Replace `ErrRangeOutOfBounds` error from `pkg/core/object` package with `ObjectOutOfRange` from `apistatus` package. That error is returned by storage node's server as NeoFS API statuses. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
11 lines
199 B
Go
11 lines
199 B
Go
package blobstor
|
|
|
|
import (
|
|
"errors"
|
|
|
|
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
|
|
)
|
|
|
|
func isErrOutOfRange(err error) bool {
|
|
return errors.As(err, new(apistatus.ObjectOutOfRange))
|
|
}
|