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

github.com/nextcloud/documentserver_community.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-06-10 01:38:23 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-06-10 01:38:50 +0300
commitc052cc0ef10033c256968548f8dffde257509174 (patch)
treec3372cca14d9a2e63ff5b91cb6ee39fc902fd912
parent4d945026c4c3d6df46e5f3cf8b20c358be8ccd7b (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.php6
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());
+ }
}
}