diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-30 07:16:04 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-30 07:16:04 +0400 |
commit | 9396d8819bdfd1145a02d5a546a9064cce85550c (patch) | |
tree | cb004eb0dcd368e79a971575e475bcc4c4e39488 /core/Http.php | |
parent | 8698554d33eef38b3f085f757f37b520a4a34bd6 (diff) |
More useful exception message when Curl failed (display hostname)
Diffstat (limited to 'core/Http.php')
-rw-r--r-- | core/Http.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Http.php b/core/Http.php index f131bc44cd..ab7973f0cb 100644 --- a/core/Http.php +++ b/core/Http.php @@ -488,7 +488,8 @@ class Http } else if ($response === false) { $errstr = curl_error($ch); if ($errstr != '') { - throw new Exception('curl_exec: ' . $errstr); + throw new Exception('curl_exec: ' . $errstr + . '. Hostname requested was: ' . UrlHelper::getHostFromUrl($aUrl)); } $response = ''; } else { |