aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-08-19 12:40:55 +0200
committerLouis Chemineau <louis@chmn.me>2021-08-19 12:40:55 +0200
commit6afab63e0978db2151a95ecfb691c058dbed6bb0 (patch)
treeac86e05624878ed113f1dc639e88091868cc1762 /cron.php
parent3dc7fd27f177993e4032c71789fac55e0af01880 (diff)
downloadnextcloud-server-6afab63e0978db2151a95ecfb691c058dbed6bb0.tar.gz
nextcloud-server-6afab63e0978db2151a95ecfb691c058dbed6bb0.zip
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);
}