dont error the entire repair process when a repair step errors
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
5cdc3e9c9d
commit
c75b82adbb
|
@ -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()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue