Skip to content
Snippets Groups Projects
Commit 5472a5f4 authored by Joas Schilling's avatar Joas Schilling
Browse files

Also catch exceptions on encryptAll and reset trashbin and singleUser mode

parent 2f102c1f
Branches
No related tags found
No related merge requests found
......@@ -115,8 +115,13 @@ class EncryptAll extends Command {
if ($this->questionHelper->ask($input, $output, $question)) {
$this->forceSingleUserAndTrashbin();
$defaultModule = $this->encryptionManager->getEncryptionModule();
$defaultModule->encryptAll($input, $output);
try {
$defaultModule = $this->encryptionManager->getEncryptionModule();
$defaultModule->encryptAll($input, $output);
} catch (\Exception $ex) {
$this->resetSingleUserAndTrashbin();
throw $ex;
}
$this->resetSingleUserAndTrashbin();
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment