mirror of https://github.com/apache/lucene.git
SOLR-10882: Rewords error message on Anova evaluator
This commit is contained in:
parent
606824acaf
commit
5fca6a4d82
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue