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:
Diffstat (limited to 'piwik.php')
-rw-r--r--piwik.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/piwik.php b/piwik.php
index c80f3517ea..654a95cd08 100644
--- a/piwik.php
+++ b/piwik.php
@@ -75,7 +75,11 @@ if($GLOBALS['PIWIK_TRACKER_DEBUG'] === true)
if(!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING)
{
$process = new Piwik_Tracker();
- $process->main();
+ try {
+ $process->main();
+ } catch(Exception $e) {
+ echo "Error:" . $e->getMessage();
+ }
ob_end_flush();
if($GLOBALS['PIWIK_TRACKER_DEBUG'] === true)
{