aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-01-13 19:00:45 +0100
committerMorris Jobke <hey@morrisjobke.de>2021-03-18 08:45:16 +0100
commitc75b82adbbfcda08a3e04cd8c8986a01871a4b85 (patch)
tree0d47ca42f13f1c81ec7496e059639451fe2974d1 /lib/private/Repair.php
parent5cdc3e9c9da5db8bf98c2786018941c412ffe146 (diff)
downloadnextcloud-server-c75b82adbbfcda08a3e04cd8c8986a01871a4b85.tar.gz
nextcloud-server-c75b82adbbfcda08a3e04cd8c8986a01871a4b85.zip
dont error the entire repair process when a repair step errors
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r--lib/private/Repair.php6
1 files changed, 5 insertions, 1 deletions
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()]);
+ }
}
}