diff options
author | szaimen <szaimen@e.mail.de> | 2021-08-10 15:01:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 15:01:52 +0200 |
commit | a6ab0e188dab93d6540e7fc6b18fb9bb8aeed856 (patch) | |
tree | 9834d283e4201ff6eedcb639c7cd7f3bd79d0642 | |
parent | 8193a0d1cfa44decfeddef16a0d6ad931c28e115 (diff) | |
parent | 84d3a5f8e689af0f62acc5547002863536e6a7aa (diff) | |
download | nextcloud-server-a6ab0e188dab93d6540e7fc6b18fb9bb8aeed856.tar.gz nextcloud-server-a6ab0e188dab93d6540e7fc6b18fb9bb8aeed856.zip |
Merge pull request #28348 from smichel17/patch-1
cron: exit 1 on exception
-rw-r--r-- | cron.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -20,6 +20,7 @@ * @author Steffen Lindner <mail@steffen-lindner.de> * @author Thomas Müller <thomas.mueller@tmit.eu> * @author Vincent Petry <vincent@nextcloud.com> + * @author Stephen Michel <git@smichel.me> * * @license AGPL-3.0 * @@ -158,6 +159,8 @@ try { exit(); } catch (Exception $ex) { \OC::$server->getLogger()->logException($ex, ['app' => 'cron']); + exit(1); } catch (Error $ex) { \OC::$server->getLogger()->logException($ex, ['app' => 'cron']); + exit(1); } |