Skip to content

Commit

Permalink
Merge pull request #52 from johnmbw/NT-chain-exception-when-failed-to…
Browse files Browse the repository at this point in the history
…-determine-sort-order

NT chain the parser exception when we fail to determine sort order
  • Loading branch information
johnmbw authored Apr 28, 2022
2 parents 9c5bd73 + 25c2b3b commit 459be3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private static SortSpec parseSortSpecImpl(String sortSpec, IndexSchema schema,
Boolean top = sp.getSortDirection();
if (null == top) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
"Can't determine a Sort Order (asc or desc) in sort spec " + sp);
"Can't determine a Sort Order (asc or desc) in sort spec " + sp, qParserException);
}

if (SCORE.equals(field)) {
Expand Down

0 comments on commit 459be3f

Please sign in to comment.