Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

backend/local: fix %!w(<nil>) in "failed to read directory" error

Marks Polakovsad5395e95352
diff --git a/backend/local/local.go b/backend/local/local.go
index 67784f8e6..25ff7fce5 100644
--- a/backend/local/local.go
+++ b/backend/local/local.go
@@ -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