Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-08-19 13:40:55 +0300
committerLouis Chemineau <louis@chmn.me>2021-08-19 13:40:55 +0300
commit6afab63e0978db2151a95ecfb691c058dbed6bb0 (patch)
treeac86e05624878ed113f1dc639e88091868cc1762 /cron.php
parent3dc7fd27f177993e4032c71789fac55e0af01880 (diff)
Output exception in cron
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index bf35f0d2374..aa14e17709e 100644
--- a/cron.php
+++ b/cron.php
@@ -159,8 +159,10 @@ try {
exit();
} catch (Exception $ex) {
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
+ echo $ex . PHP_EOL;
exit(1);
} catch (Error $ex) {
\OC::$server->getLogger()->logException($ex, ['app' => 'cron']);
+ echo $ex . PHP_EOL;
exit(1);
}