SOLR-10882: Rewords error message on Anova evaluator

This commit is contained in:
Dennis Gove 2017-06-13 09:35:16 -04:00
parent 606824acaf
commit 5fca6a4d82
1 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ package org.apache.solr.client.solrj.io.eval;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.HashMap;
import java.util.Map;
@ -38,8 +39,8 @@ public class AnovaEvaluator extends ComplexEvaluator implements Expressible {
public AnovaEvaluator(StreamExpression expression, StreamFactory factory) throws IOException {
super(expression, factory);
if(subEvaluators.size() < 2) {
throw new IOException("ANOVA evaluator expects atleast 2 parameters found: "+subEvaluators.size());
if(subEvaluators.size() < 2){
throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - expecting at least two values but found %d",expression,subEvaluators.size()));
}
}