Merge pull request #13033 from xuzha/xu-12391
Print field name when meet unexpected token.
This commit is contained in:
commit
bd0753eaa3
|
@ -145,8 +145,8 @@ public class GeoDistanceParser implements Aggregator.Parser {
|
||||||
+ currentFieldName + "].", parser.getTokenLocation());
|
+ currentFieldName + "].", parser.getTokenLocation());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new SearchParseException(context, "Unexpected token " + token + " in [" + aggregationName + "].",
|
throw new SearchParseException(context, "Unexpected token " + token + " in [" + aggregationName + "]: ["
|
||||||
parser.getTokenLocation());
|
+ currentFieldName + "].", parser.getTokenLocation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue