summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-01-31 16:04:04 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2020-02-03 08:55:22 +0000
commit5ce0b449603287e92986d621987d148f5b5a1b00 (patch)
tree2c5496980132d06ee846d078536c2fc6464f11ab /lib
parent297debef34d1192548a1fc451c645e71b05e0a81 (diff)
downloadnextcloud-server-5ce0b449603287e92986d621987d148f5b5a1b00.tar.gz
nextcloud-server-5ce0b449603287e92986d621987d148f5b5a1b00.zip
Make sure to catch php errors during job execution
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/BackgroundJob/Job.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/BackgroundJob/Job.php b/lib/private/BackgroundJob/Job.php
index 8f11ebb4deb..26c69a2486c 100644
--- a/lib/private/BackgroundJob/Job.php
+++ b/lib/private/BackgroundJob/Job.php
@@ -63,7 +63,7 @@ abstract class Job implements IJob {
$logger->debug('Finished ' . get_class($this) . ' job with ID ' . $this->getId() . ' in ' . $timeTaken . ' seconds', ['app' => 'cron']);
$jobList->setExecutionTime($this, $timeTaken);
- } catch (\Exception $e) {
+ } catch (\Throwable $e) {
if ($logger) {
$logger->logException($e, [
'app' => 'core',