mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
touch: improve error message from recursive touch
This commit is contained in:
parent
59e77f794e
commit
a70c20fe6b
@ -1914,8 +1914,9 @@ func TouchDir(ctx context.Context, f fs.Fs, t time.Time, recursive bool) error {
|
||||
fs.Debugf(f, "Touching %q", o.Remote())
|
||||
err := o.SetModTime(ctx, t)
|
||||
if err != nil {
|
||||
err = errors.Wrap(err, "failed to touch")
|
||||
err = fs.CountError(err)
|
||||
fs.Errorf(o, "Failed to touch %v", err)
|
||||
fs.Errorf(o, "%v", err)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user