Drupal_Apache_Solr_Service.php reworks the Solr Library to use drupal_http_request. When errors are given by drupal_http_request, such as that the server cannot issue HTTP requests, this information is thrown away and replaced by a generic 'Request Failed' error. This patch replaces that 'Request Failed' with whatever drupal_http_request returns as a message if the result code is 0.

Please note that this is a separate issue from the Drupal core patch noted in the code.

Patch against HEAD.

Comments

pwolanin’s picture

Title: Bad error reporting in beta6 » Bad error reporting in 6.x
pwolanin’s picture

note, we are using code off the DRUPAL-6--1 branch, not HEAD.

pwolanin’s picture

Title: Bad error reporting in 6.x » Report error for response code 0
StatusFileSize
new685 bytes

something like this might be more robust.

JacobSingh’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

pwolanin’s picture

Status: Reviewed & tested by the community » Fixed
StatusFileSize
new684 bytes

committed this

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.