Skip to content

Commit 23b44ba

Browse files
authored
Merge pull request #5485 from schomatis/fix/commands/files-cp-wrap-flush-error
files cp: wrap flush error
2 parents ce8eb13 + 7994689 commit 23b44ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/commands/files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ var filesCpCmd = &oldcmds.Command{
344344
if flush {
345345
err := mfs.FlushPath(node.FilesRoot, dst)
346346
if err != nil {
347-
res.SetError(err, cmdkit.ErrNormal)
347+
res.SetError(fmt.Errorf("cp: cannot flush the created file %s: %s", dst, err), cmdkit.ErrNormal)
348348
return
349349
}
350350
}

0 commit comments

Comments
 (0)