Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-8625: SQL: Wrong error msg if stmt param is missing

jbernstec136bd7dc737
diff --git a/solr/core/src/java/org/apache/solr/handler/SQLHandler.java b/solr/core/src/java/org/apache/solr/handler/SQLHandler.java
index 7aa8ce5d771..ec0ec774b4a 100644
--- a/solr/core/src/java/org/apache/solr/handler/SQLHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/SQLHandler.java
@@ -109,7 +109,7 @@ public class SQLHandler extends RequestHandlerBase implements SolrCoreAware {
try {
if(sql == null) {
- throw new Exception("sql parameter cannot be null");
+ throw new Exception("stmt parameter cannot be null");
}
context.setSolrClientCache(StreamHandler.clientCache);