Merge pull request #6567 from duplicati/feature/report-correct-filename

Report remote filename on hash errors
This commit is contained in:
Kenneth Skovhede
2025-10-27 12:30:01 +01:00
committed by GitHub
@@ -92,7 +92,7 @@ partial class BackendManager
throw new Exception(Strings.Controller.DownloadedFileSizeError(RemoteFilename, dataSizeDownloaded, Size));
if (!string.IsNullOrEmpty(Hash) && fileHash != Hash)
throw new HashMismatchException(Strings.Controller.HashMismatchError(tmpfile, Hash, fileHash));
throw new HashMismatchException(Strings.Controller.HashMismatchError(RemoteFilename, Hash, fileHash));
}
// Perform decryption after hash validation, if needed