Skip to content

Commit

Permalink
Add error formatting on MatrixStatsAggregatorFactory.AggregationExecu…
Browse files Browse the repository at this point in the history
…tionException (elastic#79014)
  • Loading branch information
stefnestor authored Oct 14, 2021
1 parent 115d58f commit f90f2d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected Aggregator doCreateInternal(
for (Map.Entry<String, ValuesSource> entry : valuesSources.entrySet()) {
if (entry.getValue() instanceof ValuesSource.Numeric == false) {
throw new AggregationExecutionException(
"ValuesSource type " + entry.getValue().toString() + "is not supported for aggregation " + this.name()
"ValuesSource type [" + entry.getValue().toString() + "] is not supported for aggregation [" + this.name() + "]"
);
}
// TODO: There must be a better option than this.
Expand Down

0 comments on commit f90f2d5

Please sign in to comment.