Commit 1b0b58e4 authored by Nigel McNie's avatar Nigel McNie
Browse files

Make sure we put the actual HTTP response code into the error log.

parent 5ac85823
...@@ -73,9 +73,10 @@ class Client { ...@@ -73,9 +73,10 @@ class Client {
if ('2' != $response_code_prefix) { if ('2' != $response_code_prefix) {
if ('4' == $response_code_prefix) { if ('4' == $response_code_prefix) {
throw new XmlrpcClientException('Client error code: ', $response_code); throw new XmlrpcClientException('Client error code: '. $response_code);
} elseif ('5' == $response_code_prefix) { }
throw new XmlrpcClientException('An error occurred at the remote server. Code: ', $response_code); else if ('5' == $response_code_prefix) {
throw new XmlrpcClientException('An error occurred at the remote server. Code: '. $response_code);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment