Skip to content

Commit

Permalink
Update ClientSSL.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealMattLear authored Mar 18, 2019
1 parent 52ac682 commit a4bcc2d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Client/ClientSSL.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a4bcc2d

Please sign in to comment.