summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrojaro <>2010-05-31 16:45:14 +0000
committerrojaro <>2010-05-31 16:45:14 +0000
commitaaca72349e657f8a9ea793fb626e60606a0ad73c (patch)
treed1eee9b79ae35c1953db656e8257d4d30121077e
parent846c8c00d5b2982834e09c5908e0e99512d65c3a (diff)
modified TRpcClientRequest error message
-rw-r--r--framework/Util/TRpcClient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Util/TRpcClient.php b/framework/Util/TRpcClient.php
index cf8287d1..106e3b26 100644
--- a/framework/Util/TRpcClient.php
+++ b/framework/Util/TRpcClient.php
@@ -110,7 +110,7 @@ class TRpcClient extends TApplicationComponent
protected function performRequest($serverUrl, $payload, $mimeType)
{
if(($_response = @file_get_contents($serverUrl, false, $this->createStreamContext($payload, $mimeType))) === false)
- throw new TRpcClientRequestException('RPC request failed');
+ throw new TRpcClientRequestException('Server did not respond with HTTP error code 200 ("'.$http_response_header[0].'")');
if(substr($http_response_header[0], -6) != '200 OK')
throw new TRpcClientResponseException('Server did not respond with HTTP error code 200 ("'.$http_response_header[0].'")');