You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2021/02/27 01:55:52 UTC

[lucene-solr] 02/02: @1409 Test looking for an exact message here.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit f57215b07f6ef0d9cb1dc6d04bb112efa037e85b
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Fri Feb 26 19:55:15 2021 -0600

    @1409 Test looking for an exact message here.
    
    Took 8 minutes
---
 solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java
index 3bcc3cb..f6b3ea5 100644
--- a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java
+++ b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java
@@ -140,7 +140,7 @@ public class AddUpdateCommand extends UpdateCommand {
            int count = field==null ? 0 : field.getValueCount();
            if (count == 0) {
              if (overwrite) {
-               throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "Document is missing mandatory uniqueKey field: " + sf.getName() + solrDoc);
+               throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "Document is missing mandatory uniqueKey field: " + sf.getName());
              }
            } else if (count  > 1) {
              throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "Document contains multiple values for uniqueKey field: " + field);
@@ -200,7 +200,7 @@ public class AddUpdateCommand extends UpdateCommand {
           if (overwrite) {
             throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
                 "Document is missing mandatory uniqueKey field: "
-                    + sf.getName() + " solrDoc=" + solrDoc);
+                    + sf.getName());
           }
         } else if (count > 1) {
           throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,