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:
authordiosmosis <benakamoorthi@fastmail.fm>2014-06-06 04:34:25 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-06-10 09:20:21 +0400
commit44329d3098165c61e93187ee933ad00e381bb70f (patch)
tree5548092084b6b3ab190313c9cdf0ef402125e434 /core/Plugin/Visualization.php
parentaeb9c28e0bb4549cbb395fd8fafebfd67c62ec3d (diff)
Show backtrace if should be shown when Visualization cannot load the DataTable result.
Diffstat (limited to 'core/Plugin/Visualization.php')
-rw-r--r--core/Plugin/Visualization.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php
index d73f13fd8e..e86274c5ea 100644
--- a/core/Plugin/Visualization.php
+++ b/core/Plugin/Visualization.php
@@ -179,7 +179,12 @@ class Visualization extends ViewDataTable
} catch (\Exception $e) {
Log::warning("Failed to get data from API: " . $e->getMessage() . "\n" . $e->getTraceAsString());
- $loadingError = array('message' => $e->getMessage());
+ $message = $e->getMessage();
+ if (\Piwik_ShouldPrintBackTraceWithMessage()) {
+ $message .= "\n" . $e->getTraceAsString();
+ }
+
+ $loadingError = array('message' => $message);
}
$view = new View("@CoreHome/_dataTable");