files cp: wrap flush error
License: MIT Signed-off-by: Lucas Molas <schomatis@gmail.com>
Lucas Molas committed
Sep 17, 2018 at 21:14 UTC
79946895164aef2aaad3403ff1c81e47c8f71515
1 file changed
+1
-1
core/commands/files.go
+1
-1
@@ -344,7 +344,7 @@ var filesCpCmd = &oldcmds.Command{
344
if flush {
345
err := mfs.FlushPath(node.FilesRoot, dst)
346
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)
348
return
349
}
350
}