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_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2007-09-19 16:19:09 +0400
committermatthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2007-09-19 16:19:09 +0400
commit0a20bb45e102d49a8e7e404b4c505f0b14370128 (patch)
treeadb4842d6fb930054cdd2629c1f58330b317df2b /modules/ErrorHandler.php
parentb3abdd6555944d0ebf3d0a503498cf0d810d4c3d (diff)
Added piwik release timeline to the TODO file + organized tasks
Changed config class so that it uses 2 config files now (one default and one user specific where you can setup new values for the settings)
Diffstat (limited to 'modules/ErrorHandler.php')
-rwxr-xr-xmodules/ErrorHandler.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/ErrorHandler.php b/modules/ErrorHandler.php
index d0dcb81452..db402eb902 100755
--- a/modules/ErrorHandler.php
+++ b/modules/ErrorHandler.php
@@ -10,8 +10,14 @@ function Piwik_ErrorHandler($errno, $errstr, $errfile, $errline)
debug_print_backtrace();
$backtrace = ob_get_contents();
ob_end_clean();
- Zend_Registry::get('logger_error')->log($errno, $errstr, $errfile, $errline, $backtrace);
+ try {
+ Zend_Registry::get('logger_error')->log($errno, $errstr, $errfile, $errline, $backtrace);
+ }catch(Exception $e){
+ // in case the error occurs before the logger creation, we simply display it
+ print("<pre>$errstr \nin '$errfile' at the line $errline\n\n$backtrace\n</pre>");
+ exit;
+ }
switch($errno)
{
case E_ERROR: