Skip to content
Permalink
Browse files

Thrown object should be an Exception instance

  • Loading branch information...
majna committed Nov 8, 2013
1 parent ef205e8 commit 4c4734c25ec8ad83b787fdc59703774ceebb6f7f
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cake/Network/Http/Adapter/Stream.php
@@ -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') {

0 comments on commit 4c4734c

Please sign in to comment.
You can’t perform that action at this time.