Skip to content

Commit

Permalink
Merge pull request #3336 from kobergj/ErrorOnListFolder
Browse files Browse the repository at this point in the history
[tests-only] Return when running in errors on ListContainers
  • Loading branch information
kobergj authored Oct 12, 2022
2 parents 8f35682 + 7665fbd commit e92ac5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/storage/utils/decomposedfs/tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,12 @@ func (t *Tree) ListFolder(ctx context.Context, n *node.Node) ([]*node.Node, erro
for i := range names {
nodeID, err := readChildNodeFromLink(filepath.Join(dir, names[i]))
if err != nil {
// TODO log
continue
return nil, err
}

child, err := node.ReadNode(ctx, t.lookup, n.SpaceID, nodeID, false)
if err != nil {
// TODO log
continue
return nil, err
}
if child.SpaceRoot == nil {
child.SpaceRoot = n.SpaceRoot
Expand Down

0 comments on commit e92ac5d

Please sign in to comment.