chore: add actual request size in error message (#5889)

This commit is contained in:
Hui Wang 2024-02-28 22:33:08 +08:00 committed by Aliaksandr Valialkin
parent 2821993c9c
commit d6ecfffa17
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -110,7 +110,7 @@ func (ctx *pushCtx) Read() error {
}
if reqLen > int64(maxInsertRequestSize.N) {
readErrors.Inc()
return fmt.Errorf("too big packed request; mustn't exceed -maxInsertRequestSize=%d bytes", maxInsertRequestSize.N)
return fmt.Errorf("too big packed request; mustn't exceed -maxInsertRequestSize=%d bytes; got %d bytes", maxInsertRequestSize.N, reqLen)
}
return nil
}