dont error the entire repair process when a repair step errors

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-01-13 19:00:45 +01:00 committed by Morris Jobke
parent 5cdc3e9c9d
commit c75b82adbb
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 5 additions and 1 deletions

View File

@ -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()]);
}
}
}