[#220] localstorage: Replace basic errors to core library

Replace ErrNotFound and ErrRangeOutOfBounds to core/object package in order
to share them across the libraries.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-30 19:39:05 +03:00 committed by Alex Vanin
parent 7512a5ba18
commit 47d2239332
15 changed files with 68 additions and 82 deletions

View file

@ -152,9 +152,9 @@ func TestBlobovniczas(t *testing.T) {
gPrm.SetAddress(addrList[i])
_, err = b.get(gPrm)
require.True(t, errors.Is(err, ErrObjectNotFound))
require.True(t, errors.Is(err, object.ErrNotFound))
_, err = b.delete(dPrm)
require.True(t, errors.Is(err, ErrObjectNotFound))
require.True(t, errors.Is(err, object.ErrNotFound))
}
}