Update error message for allowed characters in aggregation names (#41573)

Exception message thrown when specifying illegal characters did
no accurately described the allowed characters.  This updates the 
error message to reflect reality (any character except [, ] and >)
This commit is contained in:
Issam EL-ATIF 2019-05-03 17:54:22 +02:00 committed by Zachary Tong
parent 4421744184
commit 23706d4cdf
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class AggregatorFactories {
final String aggregationName = parser.currentName(); final String aggregationName = parser.currentName();
if (!validAggMatcher.reset(aggregationName).matches()) { if (!validAggMatcher.reset(aggregationName).matches()) {
throw new ParsingException(parser.getTokenLocation(), "Invalid aggregation name [" + aggregationName throw new ParsingException(parser.getTokenLocation(), "Invalid aggregation name [" + aggregationName
+ "]. Aggregation names must be alpha-numeric and can only contain '_' and '-'"); + "]. Aggregation names can contain any character except '[', ']', and '>'");
} }
token = parser.nextToken(); token = parser.nextToken();