Navigation Menu

Skip to content

Commit

Permalink
Thrown object should be an Exception instance
Browse files Browse the repository at this point in the history
  • Loading branch information
majna committed Nov 8, 2013
1 parent ef205e8 commit 4c4734c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/Network/Http/Adapter/Stream.php
Expand Up @@ -244,7 +244,7 @@ protected function _send(Request $request) {
fclose($this->_stream);

if ($meta['timed_out']) {
throw Error\Exception('Connection timed out ' . $url);
throw new Error\Exception('Connection timed out ' . $url);
}
$headers = $meta['wrapper_data'];
if (isset($meta['wrapper_type']) && $meta['wrapper_type'] === 'curl') {
Expand Down

0 comments on commit 4c4734c

Please sign in to comment.