Skip to content

Commit

Permalink
Merge pull request #166 from Bwen/master
Browse files Browse the repository at this point in the history
Added which uri curl could not connect to
  • Loading branch information
Nate Good committed Mar 8, 2015
2 parents 437a3c5 + be27843 commit c9790a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Httpful/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ public function send()
if ($curlErrorNumber = curl_errno($this->_ch)) {
$curlErrorString = curl_error($this->_ch);
$this->_error($curlErrorString);
throw new ConnectionErrorException('Unable to connect: ' . $curlErrorNumber . ' ' . $curlErrorString);
throw new ConnectionErrorException('Unable to connect to "'.$this->uri.'": ' . $curlErrorNumber . ' ' . $curlErrorString);
}

$this->_error('Unable to connect.');
throw new ConnectionErrorException('Unable to connect.');
$this->_error('Unable to connect to "'.$this->uri.'".');
throw new ConnectionErrorException('Unable to connect to "'.$this->uri.'".');
}

$info = curl_getinfo($this->_ch);
Expand Down

0 comments on commit c9790a9

Please sign in to comment.