Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
1b0b58e4
Commit
1b0b58e4
authored
Sep 16, 2008
by
Nigel McNie
Browse files
Make sure we put the actual HTTP response code into the error log.
parent
5ac85823
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/api/xmlrpc/client.php
View file @
1b0b58e4
...
...
@@ -73,9 +73,10 @@ class Client {
if
(
'2'
!=
$response_code_prefix
)
{
if
(
'4'
==
$response_code_prefix
)
{
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
);
throw
new
XmlrpcClientException
(
'Client error code: '
.
$response_code
);
}
else
if
(
'5'
==
$response_code_prefix
)
{
throw
new
XmlrpcClientException
(
'An error occurred at the remote server. Code: '
.
$response_code
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment