Merge pull request #5485 from schomatis/fix/commands/files-cp-wrap-flush-error

files cp: wrap flush error
This commit is contained in:
Steven Allen 2018-09-19 18:39:19 +00:00 committed by GitHub
commit 23b44ba3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}