aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair.php
diff options
context:
space:
mode:
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()]);
+ }
}
}