mirror of https://github.com/apache/lucene.git
fix spelling in Exceptions
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@769656 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aaf2be3f73
commit
3dc6f5e2f2
|
@ -331,17 +331,17 @@ public class DocumentAnalysisRequestHandler extends AnalysisRequestHandlerBase {
|
|||
Iterable<ContentStream> streams = req.getContentStreams();
|
||||
if (streams == null) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
"DocumentAnlysisRequestHandler expects a single content stream with documents to analys");
|
||||
"DocumentAnlysisRequestHandler expects a single content stream with documents to analyze");
|
||||
}
|
||||
Iterator<ContentStream> iter = streams.iterator();
|
||||
if (!iter.hasNext()) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
"DocumentAnlysisRequestHandler expects a single content stream with documents to analys");
|
||||
"DocumentAnlysisRequestHandler expects a single content stream with documents to analyze");
|
||||
}
|
||||
ContentStream stream = iter.next();
|
||||
if (iter.hasNext()) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
|
||||
"DocumentAnlysisRequestHandler expects a single content stream with documents to analys");
|
||||
"DocumentAnlysisRequestHandler expects a single content stream with documents to analyze");
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue