Skip to content

Commit 27556d0

Browse files
committed
Added debug logging.
1 parent 442e48a commit 27556d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/com/jsoniter/IterImplForStreaming.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private static boolean keepSkippedBytesThenRead(JsonIterator iter) throws IOExce
282282
if (iter.autoExpandBufferStep > 0) {
283283
iter.buf = new byte[iter.buf.length + iter.autoExpandBufferStep];
284284
} else {
285-
throw iter.reportError("loadMore", "buffer is full and autoexpansion is disabled");
285+
throw iter.reportError("loadMore", String.format("buffer is full and autoexpansion is disabled. tail: [%s] skipStartedAt: [%s]", iter.tail, iter.skipStartedAt));
286286
}
287287
}
288288
System.arraycopy(srcBuffer, iter.skipStartedAt, iter.buf, 0, offset);

0 commit comments

Comments
 (0)