Skip to content

Commit 5224cb3

Browse files
authored
Fixed forgotten throw
1 parent a41b3ba commit 5224cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/jsoniter/IterImplString.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static final String readString(JsonIterator iter) throws IOException {
5959
IterImpl.skipFixedBytes(iter, 3);
6060
return null;
6161
}
62-
iter.reportError("readString", "expect string or null, but " + (char) c);
62+
throw iter.reportError("readString", "expect string or null, but " + (char) c);
6363
}
6464
int j = parse(iter);
6565
return new String(iter.reusableChars, 0, j);

0 commit comments

Comments
 (0)