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 GitHub
parent 935a42d08c
commit 8c33ba537a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
}