diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2018-08-13 00:48:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-13 00:48:27 +0300 |
commit | 73bc38f81454b78b1f844ea3ffbd9681117064de (patch) | |
tree | 2450c0ae4e7c7e6da331af3738ea9fe0c7969566 /plugins/CorePluginsAdmin | |
parent | eb035eb9ebbf794c852ca0707423cb8ab3543aa8 (diff) |
Add backtrace to exceptions treated as fatal errors w/ test, … (#13276)
* Add backtrace to exceptions treated as fatal errors w/ test, and move partial backtrace reconstruction to FrontController so different safemodes can receive it.
* Add missing file.
* fixing tests
* fix test finally
* fix submodule
Diffstat (limited to 'plugins/CorePluginsAdmin')
-rw-r--r-- | plugins/CorePluginsAdmin/Controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CorePluginsAdmin/Controller.php b/plugins/CorePluginsAdmin/Controller.php index 630e8dbf31..e45182da73 100644 --- a/plugins/CorePluginsAdmin/Controller.php +++ b/plugins/CorePluginsAdmin/Controller.php @@ -316,8 +316,8 @@ class Controller extends Plugin\ControllerAdmin $errorMessage = $lastError['message']; - if (\Piwik_ShouldPrintBackTraceWithMessage()) { - $errorMessage .= ' on ' . $lastError['file'] . '(' . $lastError['line'] . ")\n" . ErrorHandler::getFatalErrorPartialBacktrace(); + if (!empty($lastError['backtrace'])) { + $errorMessage .= $lastError['backtrace']; } if (Piwik::isUserIsAnonymous()) { |