From 79946895164aef2aaad3403ff1c81e47c8f71515 Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Mon, 17 Sep 2018 21:14:42 -0300 Subject: [PATCH] files cp: wrap flush error License: MIT Signed-off-by: Lucas Molas --- core/commands/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/files.go b/core/commands/files.go index 9546b98cd..86ed488d6 100644 --- a/core/commands/files.go +++ b/core/commands/files.go @@ -344,7 +344,7 @@ var filesCpCmd = &oldcmds.Command{ if flush { err := mfs.FlushPath(node.FilesRoot, dst) if err != nil { - res.SetError(err, cmdkit.ErrNormal) + res.SetError(fmt.Errorf("cp: cannot flush the created file %s: %s", dst, err), cmdkit.ErrNormal) return } }