Skip to content

Commit 608e453

Browse files
Update exception message
1 parent 44d0ed9 commit 608e453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/rcode/wsclient/WireProtocol.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ protected String readLine(InputStream in) throws IOException {
227227
in.mark(source.length);
228228
int r=in.read(source);
229229
if (r<0) {
230-
throw new IOException("Short line reading response");
230+
throw new IOException("Short line reading response. Got: '" + new String(source, "ISO-8859-1") + "'");
231231
}
232232
sourceBuffer.clear();
233233
sourceBuffer.limit(r);

0 commit comments

Comments
 (0)