[#203] Make eACL not found error public

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-11-24 15:19:44 +03:00 committed by Alex Vanin
parent 400b65801d
commit 8cedb93cea

View file

@ -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()