mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 15:30:40 +00:00
[server] Include objectKey in size mismatch
This commit is contained in:
parent
cd1b0b1f6a
commit
d4311bc6c2
@ -591,8 +591,8 @@ func (c *ReplicationController3) verifyUploadedFileSize(in *UploadInput, dest *U
|
|||||||
}
|
}
|
||||||
|
|
||||||
if *res.ContentLength != in.ExpectedSize {
|
if *res.ContentLength != in.ExpectedSize {
|
||||||
err = fmt.Errorf("size of the uploaded file (%d) does not match the expected size (%d) in bucket %s",
|
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)
|
*res.ContentLength, in.ExpectedSize, *dest.Bucket, in.ObjectKey)
|
||||||
c.notifyDiscord(fmt.Sprint(err))
|
c.notifyDiscord(fmt.Sprint(err))
|
||||||
return stacktrace.Propagate(err, "")
|
return stacktrace.Propagate(err, "")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user