Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-30 07:16:04 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-30 07:16:04 +0400
commit9396d8819bdfd1145a02d5a546a9064cce85550c (patch)
treecb004eb0dcd368e79a971575e475bcc4c4e39488 /core/Http.php
parent8698554d33eef38b3f085f757f37b520a4a34bd6 (diff)
More useful exception message when Curl failed (display hostname)
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php3
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 {