Skip to content

Commit

Permalink
EnumJsonReader error message fixed (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodforGod authored Jul 19, 2023
1 parent ea32188 commit bb75e4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public T read(JsonParser parser) throws IOException {
var stringValue = parser.getText();
var value = this.values.get(stringValue);
if (value == null) {
throw new JsonParseException(parser, "Expecting enum value, got " + token);
throw new JsonParseException(parser, "Expecting one of " + this.values.keySet() + ", got " + stringValue);
}
return value;
}
Expand Down

0 comments on commit bb75e4b

Please sign in to comment.