Skip to content

Commit a955d62

Browse files
committed
decomposedfs: do not swallow errors when creating nodes (cs3org#2457)
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
1 parent 4f84896 commit a955d62

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bugfix: do not swallow error
2+
3+
decomposedfs not longer swallows errors when creating a node fails.
4+
5+
https://github.com/cs3org/reva/pull/2457

pkg/storage/utils/decomposedfs/tree/tree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func (t *Tree) CreateDir(ctx context.Context, n *node.Node) (err error) {
259259

260260
err = t.createNode(n, owner)
261261
if err != nil {
262-
return nil
262+
return
263263
}
264264

265265
// make child appear in listings

0 commit comments

Comments
 (0)