From 2de084944b75190a1e5211f8977ef89f5ca88a09 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 9 Oct 2023 16:56:13 +0100 Subject: [PATCH] operations: fix error message on delete to have file name - fixes #7355 --- fs/operations/operations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/operations/operations.go b/fs/operations/operations.go index 262f9fedd..318cd6765 100644 --- a/fs/operations/operations.go +++ b/fs/operations/operations.go @@ -772,7 +772,7 @@ func DeleteFilesWithBackupDir(ctx context.Context, toBeDeleted fs.ObjectsChan, b if err != nil { errorCount.Add(1) if fserrors.IsFatalError(err) { - fs.Errorf(nil, "Got fatal error on delete: %s", err) + fs.Errorf(dst, "Got fatal error on delete: %s", err) fatalErrorCount.Add(1) return }