[#502] Fix list empty bucket
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
4f3d206422
commit
41c815441b
1 changed files with 3 additions and 0 deletions
|
@ -614,6 +614,9 @@ func (c *TreeClient) getSubTreeByPrefix(ctx context.Context, cnrID *cid.ID, tree
|
|||
|
||||
subTree, err := c.getSubTree(ctx, cnrID, treeID, rootID, 1)
|
||||
if err != nil {
|
||||
if errors.Is(err, layer.ErrNodeNotFound) {
|
||||
return nil, nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue