From ad5395e95352e7e1d257353cca321082b52cb51d Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sun, 25 Dec 2022 14:30:37 +0200 Subject: [PATCH] backend/local: fix %!w() in "failed to read directory" error --- backend/local/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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