1
mirror of https://github.com/rclone/rclone synced 2024-11-16 16:15:34 +01:00

touch: improve error message from recursive touch

This commit is contained in:
albertony 2021-10-21 17:32:28 +02:00
parent 59e77f794e
commit a70c20fe6b

View File

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