From c75b82adbbfcda08a3e04cd8c8986a01871a4b85 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 13 Jan 2021 19:00:45 +0100 Subject: [PATCH] dont error the entire repair process when a repair step errors Signed-off-by: Robin Appelman --- lib/private/Repair.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/private/Repair.php b/lib/private/Repair.php index e7c6f729a8f..22a715caf1d 100644 --- a/lib/private/Repair.php +++ b/lib/private/Repair.php @@ -114,7 +114,11 @@ class Repair implements IOutput { foreach ($this->repairSteps as $step) { $this->currentStep = $step->getName(); $this->emit('\OC\Repair', 'step', [$this->currentStep]); - $step->run($this); + try { + $step->run($this); + } catch (\Exception $e) { + $this->emit('\OC\Repair', 'error', [$e->getMessage()]); + } } }