mirror of
https://github.com/rclone/rclone
synced 2025-02-16 11:34:29 +01:00
backend/local: fix %!w(<nil>) in "failed to read directory" error
This commit is contained in:
parent
1925ceaade
commit
ad5395e953
@ -503,7 +503,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
|
||||
continue
|
||||
}
|
||||
}
|
||||
err = fmt.Errorf("failed to read directory %q: %w", namepath, err)
|
||||
err = fmt.Errorf("failed to read directory %q: %w", namepath, fierr)
|
||||
fs.Errorf(dir, "%v", fierr)
|
||||
_ = accounting.Stats(ctx).Error(fserrors.NoRetryError(fierr)) // fail the sync
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user