Andrzej Bialecki created SOLR-14234:
---------------------------------------

             Summary: Unhelpful message in RemoteExecutionException
                 Key: SOLR-14234
                 URL: https://issues.apache.org/jira/browse/SOLR-14234
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Andrzej Bialecki


Details of this exception are unusually passed here not in the message or 
{{getCause()}} but instead they are passed in a separate field {{meta}}.

The problem is that in many contexts where {{toString()}} is used these details 
are completely ignored, which produces very confusing and incomplete messages, 
like this:
{code}
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteExecutionException: 
Error from server at https://127.0.0.1:59006/solr: Error in command payload
        at 
__randomizedtesting.SeedInfo.seed([8AD470708D05DCDB:EF407342F1EBA057]:0)
        at 
org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteExecutionException.create(BaseHttpSolrClient.java:66)
{code}

I propose to add the details to the message.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to