Throw exception on error instead of logging to console

This commit is contained in:
Tom Morris 2016-04-26 19:57:13 -04:00
parent 6df822e5a6
commit aa65bc5c18

View File

@ -104,7 +104,7 @@ public class TextSearchFacet implements Facet {
_query,
_caseSensitive ? 0 : Pattern.CASE_INSENSITIVE);
} catch (java.util.regex.PatternSyntaxException e) {
e.printStackTrace();
throw new JSONException(e);
}
} else if (!_caseSensitive) {
_query = _query.toLowerCase();