From 9396d8819bdfd1145a02d5a546a9064cce85550c Mon Sep 17 00:00:00 2001 From: mattab Date: Fri, 30 May 2014 15:16:04 +1200 Subject: More useful exception message when Curl failed (display hostname) --- core/Http.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/Http.php') 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 { -- cgit v1.2.3