operations: fix error message on delete to have file name - fixes #7355

This commit is contained in:
Nick Craig-Wood 2023-10-09 16:56:13 +01:00
parent 48a8bfa6b3
commit 2de084944b

View File

@ -772,7 +772,7 @@ func DeleteFilesWithBackupDir(ctx context.Context, toBeDeleted fs.ObjectsChan, b
if err != nil { if err != nil {
errorCount.Add(1) errorCount.Add(1)
if fserrors.IsFatalError(err) { 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) fatalErrorCount.Add(1)
return return
} }