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:
authorMatthieu Aubry <matt@piwik.org>2014-07-07 18:07:27 +0400
committerMatthieu Aubry <matt@piwik.org>2014-07-07 18:07:27 +0400
commitfbda5abfcd843eee8d4c33621bdd8e4390b46ddc (patch)
tree6e6c0ec9a5762b0355f61448749c147199df257d /core/CliMulti.php
parentf70e1258ee7f556601c16e8711fb99592ee14c6e (diff)
parent5a060c8bd74f48ed340a55c91120650cfb70993c (diff)
Merge pull request #345 from craue/more-useful-error-message
provide a more useful error message on exception
Diffstat (limited to 'core/CliMulti.php')
-rw-r--r--core/CliMulti.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/CliMulti.php b/core/CliMulti.php
index f5b0d552bd..6248a89789 100644
--- a/core/CliMulti.php
+++ b/core/CliMulti.php
@@ -234,7 +234,7 @@ class CliMulti {
} catch (\Exception $e) {
$message = "Got invalid response from API request: $url. ";
- if (empty($response)) {
+ if (isset($response) && empty($response)) {
$message .= "The response was empty. This usually means a server error. This solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web server Error Log file for more details.";
} else {
$message .= "Response was '" . $e->getMessage() . "'";