Skip to content

Commit

Permalink
Merge pull request #174 from laurentmartelli/master
Browse files Browse the repository at this point in the history
Transmits $errno from stream_socket_client in exception
  • Loading branch information
rmccue committed Oct 13, 2015
2 parents c3fe7fa + 177ec27 commit 6bed213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Requests/Transport/fsockopen.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function request($url, $headers = array(), $data = array(), $options = ar
throw new Requests_Exception(rtrim($this->connect_error), 'fsockopen.connect_error');
}
else {
throw new Requests_Exception($errstr, 'fsockopenerror');
throw new Requests_Exception($errstr, 'fsockopenerror', NULL, $errno);
return;
}
}
Expand Down

0 comments on commit 6bed213

Please sign in to comment.