Skip to content

Commit

Permalink
Merge pull request #50 from epam/main
Browse files Browse the repository at this point in the history
Add Readable Error For Invalid Facet Value Type (#49)
  • Loading branch information
buhaiovos authored May 28, 2024
2 parents a435db9 + d4f82d5 commit deda805
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public enum FacetValueType {
public static FacetValueType fromValue(String value) {
FacetValueType constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
throw new IllegalArgumentException("Unknown facet value type: '" + value + "'");
} else {
return constant;
}
Expand Down

0 comments on commit deda805

Please sign in to comment.