mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 18:28:08 +08:00
files cp: wrap flush error
License: MIT Signed-off-by: Lucas Molas <schomatis@gmail.com>
This commit is contained in:
parent
2dca8c2f96
commit
7994689516
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user