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
path: root/misc
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-03-30 23:14:46 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-31 00:30:07 +0400
commit43d1a17cb1004e859757c9c0173f52cf78dc9dcf (patch)
treec8ed2fbc1cc0b35333d8ad1acb2058760d911fcf /misc
parent7c1a73db9d5683ccb074012a1e735124f21a74a4 (diff)
Do not call exit from within CronArchive class.
Diffstat (limited to 'misc')
-rw-r--r--misc/cron/archive.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php
index 4a4b17c435..384fdc707f 100644
--- a/misc/cron/archive.php
+++ b/misc/cron/archive.php
@@ -47,6 +47,8 @@ try {
$archiving->run();
$archiving->runScheduledTasks();
$archiving->end();
+} catch (Piwik\CronArchiveFatalException $ex) {
+ $ex->logAndExit($archiving);
} catch (Exception $e) {
- $archiving->logFatalError($e->getMessage());
-}
+ $archiving->logFatalExceptionAndExit($e);
+}