garydgregory commented on a change in pull request #171: Consistency fixes
URL: 
https://github.com/apache/httpcomponents-core/pull/171#discussion_r361338274
 
 

 ##########
 File path: 
httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/LengthDelimitedDecoder.java
 ##########
 @@ -86,7 +86,7 @@ public int read(final ByteBuffer dst) throws IOException {
             setCompleted();
             if (this.len < this.contentLength) {
                 throw new ConnectionClosedException(
-                                "Premature end of Content-Length delimited 
message body (expected: %,d; received: %,d)",
+                                "Premature end of Content-Length delimited 
message body (expected: %d; received: %d)",
 
 Review comment:
   I do not understand why you'd want to make the message less readable by 
humans.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to