[server] Include objectKey in size mismatch

This commit is contained in:
Neeraj Gupta 2024-11-26 07:00:36 +05:30
parent cd1b0b1f6a
commit d4311bc6c2

View File

@ -591,8 +591,8 @@ func (c *ReplicationController3) verifyUploadedFileSize(in *UploadInput, dest *U
}
if *res.ContentLength != in.ExpectedSize {
err = fmt.Errorf("size of the uploaded file (%d) does not match the expected size (%d) in bucket %s",
*res.ContentLength, in.ExpectedSize, *dest.Bucket)
err = fmt.Errorf("size of the uploaded file (%d) does not match the expected size (%d) in bucket %s for object %s",
*res.ContentLength, in.ExpectedSize, *dest.Bucket, in.ObjectKey)
c.notifyDiscord(fmt.Sprint(err))
return stacktrace.Propagate(err, "")
}