Skip to content

Commit c9d358d

Browse files
authored
Merge pull request #15 Print type on error
2 parents 6e0a183 + 98f5bb6 commit c9d358d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/paulasmuth/sqltap/mysql/LengthEncodedString.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ object LengthEncodedString {
4242
throw new SQLProtocolError("length encoded string too large!")
4343

4444
else
45-
throw new SQLProtocolError("invalid length encoded string")
45+
throw new SQLProtocolError("invalid length encoded string. pos: " + pos + ", type: " + (data(pos) & 0x000000ff))
4646

4747
val string = new String(data, offset, length, "UTF-8")
4848

0 commit comments

Comments
 (0)