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 cc036884d4
commit 1591592936

View File

@ -768,7 +768,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
}