From 8cedb93cea165ead17e89fabcf77dead945de10d Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 24 Nov 2020 15:19:44 +0300 Subject: [PATCH] [#203] Make `eACL not found` error public Signed-off-by: Alex Vanin --- pkg/morph/client/container/wrapper/eacl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/morph/client/container/wrapper/eacl.go b/pkg/morph/client/container/wrapper/eacl.go index 3b843034..2f11b744 100644 --- a/pkg/morph/client/container/wrapper/eacl.go +++ b/pkg/morph/client/container/wrapper/eacl.go @@ -7,7 +7,7 @@ import ( "github.com/pkg/errors" ) -var errEACLNotFound = errors.New("extended ACL table is not set for this container") +var ErrEACLNotFound = errors.New("extended ACL table is not set for this container") // GetEACL reads the extended ACL table from NeoFS system // through Container contract call. @@ -34,7 +34,7 @@ func (w *Wrapper) GetEACL(cid *container.ID) (*eacl.Table, []byte, error) { // since unsigned table cannot be approved in the storage by design. sig := rpcAnswer.Signature() if len(sig) == 0 { - return nil, nil, errEACLNotFound + return nil, nil, ErrEACLNotFound } table := eacl.NewTable()