diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-06-10 01:38:23 +0300 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-06-10 01:38:50 +0300 |
commit | c052cc0ef10033c256968548f8dffde257509174 (patch) | |
tree | c3372cca14d9a2e63ff5b91cb6ee39fc902fd912 | |
parent | 4d945026c4c3d6df46e5f3cf8b20c358be8ccd7b (diff) |
Make sure a repair job does not interrupt a upgrade.bug/145/catch-error-on-repair
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r-- | lib/Migration/RebuildFonts.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Migration/RebuildFonts.php b/lib/Migration/RebuildFonts.php index 4b2371a..ddbc919 100644 --- a/lib/Migration/RebuildFonts.php +++ b/lib/Migration/RebuildFonts.php @@ -43,6 +43,10 @@ class RebuildFonts implements IRepairStep { * @inheritdoc */ public function run(IOutput $output) { - $this->fontManager->rebuildFonts(); + try { + $this->fontManager->rebuildFonts(); + } catch (\Exception $e) { + $output->warning('Could not rebuild font library: ' . $e->getMessage()); + } } } |