fixed error reporting in XMLRPC client
Ignore-this: 4d1b83deb38aa6192cfe53cecdc6b6f6 darcs-hash:20090221125206-7ad00-44d6a3c5a11d6042c2fc6e41bd7f309a382a55dc.gz
This commit is contained in:
parent
28ec3c7605
commit
7558821bb6
1 changed files with 2 additions and 2 deletions
|
@ -525,12 +525,12 @@ class IXR_Client extends DokuHTTPClient {
|
|||
$this->message = new IXR_Message($this->resp_body);
|
||||
if (!$this->message->parse()) {
|
||||
// XML error
|
||||
$this->error = new IXR_Error(-32700, 'parse error. not well formed');
|
||||
$this->xmlerror = new IXR_Error(-32700, 'parse error. not well formed');
|
||||
return false;
|
||||
}
|
||||
// Is the message a fault?
|
||||
if ($this->message->messageType == 'fault') {
|
||||
$this->error = new IXR_Error($this->message->faultCode, $this->message->faultString);
|
||||
$this->xmlerror = new IXR_Error($this->message->faultCode, $this->message->faultString);
|
||||
return false;
|
||||
}
|
||||
// Message must be OK
|
||||
|
|
Loading…
Reference in a new issue