Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] Include objectKey in size mismatch

Neeraj Guptad4311bc6c2b7
diff --git a/server/pkg/controller/replication3.go b/server/pkg/controller/replication3.go
index f25069c582..c7b52ff870 100644
--- a/server/pkg/controller/replication3.go
+++ b/server/pkg/controller/replication3.go
@@ -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, "")
}