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()) fs.Debugf(f, "Touching %q", o.Remote())
err := o.SetModTime(ctx, t) err := o.SetModTime(ctx, t)
if err != nil { if err != nil {
err = errors.Wrap(err, "failed to touch")
err = fs.CountError(err) err = fs.CountError(err)
fs.Errorf(o, "Failed to touch %v", err) fs.Errorf(o, "%v", err)
} }
} }
}) })