dont error the entire repair process when a repair step errors

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/25112/head
Robin Appelman 6 years ago committed by Morris Jobke
parent 5cdc3e9c9d
commit c75b82adbb
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 6
      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()]);
}
}
}

Loading…
Cancel
Save