Skip to content

Commit

Permalink
improve error message in case of checksum mismatch for bulk upload
Browse files Browse the repository at this point in the history
close #30626

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Jul 10, 2023
1 parent a17ccc9 commit 88474c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/BulkUpload/MultipartRequestParser.php
Expand Up @@ -208,7 +208,7 @@ private function readPartContent(int $length, string $md5): string {
$computedMd5 = $this->computeMd5Hash($length);

if ($md5 !== $computedMd5) {
throw new BadRequest("Computed md5 hash is incorrect.");
throw new BadRequest("Computed md5 hash is incorrect. Expected: " . $md5 . " computed " . $computedMd5);
}

if ($length === 0) {
Expand Down

0 comments on commit 88474c9

Please sign in to comment.