diff --git a/pkg/storage/utils/decomposedfs/tree/tree.go b/pkg/storage/utils/decomposedfs/tree/tree.go index 162910a0af..8cafa199ae 100644 --- a/pkg/storage/utils/decomposedfs/tree/tree.go +++ b/pkg/storage/utils/decomposedfs/tree/tree.go @@ -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