Skip to content

Commit

Permalink
Merge pull request #5485 from schomatis/fix/commands/files-cp-wrap-fl…
Browse files Browse the repository at this point in the history
…ush-error

files cp: wrap flush error
  • Loading branch information
Stebalien authored Sep 19, 2018
2 parents ce8eb13 + 7994689 commit 23b44ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 23b44ba

Please sign in to comment.