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-10-10 11:58:10 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-10 11:58:10 +0400
commit020b5da68976e9d00f17480ad206845a60c61110 (patch)
treea2556900fe51c9605eb13c8c581b4d249002c728 /core/Tracker.php
parent5f6abcfd84c44f6b5ffe35e01a7b73a74969b1bc (diff)
Output trace when failing in tracker
Diffstat (limited to 'core/Tracker.php')
-rw-r--r--core/Tracker.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index bd72e04920..f3c8fa55d7 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -794,9 +794,11 @@ class Tracker
// Avoid leaking the username/db name when access denied
if ($e->getCode() == 1044 || $e->getCode() == 42000) {
return "Error while connecting to the Piwik database - please check your credentials in config/config.ini.php file";
- } else {
- return $e->getMessage();
}
+ if(Common::isPhpCliMode()) {
+ return $e->getMessage() . "\n" . $e->getTraceAsString();
+ }
+ return $e->getMessage();
}
/**