From a4bcc2d51dcb135fc82b0f452115d00de5f6ae95 Mon Sep 17 00:00:00 2001 From: TheRealMattLear Date: Mon, 18 Mar 2019 19:47:08 +1100 Subject: [PATCH] Update ClientSSL.php --- src/Client/ClientSSL.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Client/ClientSSL.php b/src/Client/ClientSSL.php index e10515c..a44f40c 100644 --- a/src/Client/ClientSSL.php +++ b/src/Client/ClientSSL.php @@ -200,16 +200,13 @@ public function query() //There was no "200 OK" returned - we failed if ( $curlerrno === 0 ){ - $this->error = new IXR_Error(-32300, "Request failed - Ensure firewall outgoing port {$this->port} is opened" . (!filter_var($this->server, FILTER_VALIDATE_IP)?" and ensure domain '{$this->server}' can be resolved.":".")); - return false; + return $this->handleError(-32300, "Request failed - Ensure firewall outgoing port {$this->port} is opened" . (!filter_var($this->server, FILTER_VALIDATE_IP)?" and ensure domain '{$this->server}' can be resolved.":".")); } if ( $curlerrno === 7 ){ - $this->error = new IXR_Error(-32300, "Request failed - HTTP status code {$curlerrno} - {$curlerror}.\nEnsure firewall outgoing port {$this->port} is opened."); - return false; + return $this->handleError(-32300, "Request failed - HTTP status code {$curlerrno} - {$curlerror}.\nEnsure firewall outgoing port {$this->port} is opened."); } - $this->error = new IXR_Error(-32300, 'Request failed - HTTP status code '. $curlerrno . ' - ' . $curlerror); - return false; + return $this->handleError(-32300, 'Request failed - HTTP status code '. $curlerrno . ' - ' . $curlerror); } if ($this->debug) {