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:
authorChristian Raue <christian.raue@gmail.com>2014-07-05 16:15:36 +0400
committerChristian Raue <christian.raue@gmail.com>2014-07-05 16:15:36 +0400
commit5a060c8bd74f48ed340a55c91120650cfb70993c (patch)
tree1584bae93e74d5e39dfa67709b19e31eae54a94b /core/CliMulti.php
parent0b465431bb60ab31ee77b1da17ca45fa177235cc (diff)
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 8085631feb..e0ae1fc041 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() . "'";