Переглянути джерело

Add error formatting on MatrixStatsAggregatorFactory.AggregationExecutionException (#79014)

Stef Nestor 4 роки тому
батько
коміт
f90f2d57d7

+ 1 - 1
modules/aggs-matrix-stats/src/main/java/org/elasticsearch/search/aggregations/matrix/stats/MatrixStatsAggregatorFactory.java

@@ -55,7 +55,7 @@ final class MatrixStatsAggregatorFactory extends ArrayValuesSourceAggregatorFact
         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.