diff options
Diffstat (limited to 'core/Command/Encryption/SetDefaultModule.php')
-rw-r--r-- | core/Command/Encryption/SetDefaultModule.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Command/Encryption/SetDefaultModule.php b/core/Command/Encryption/SetDefaultModule.php index 01c85abdf6e..21c1ba77322 100644 --- a/core/Command/Encryption/SetDefaultModule.php +++ b/core/Command/Encryption/SetDefaultModule.php @@ -65,12 +65,12 @@ class SetDefaultModule extends Command { ; } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { $isMaintenanceModeEnabled = $this->config->getSystemValue('maintenance', false); if ($isMaintenanceModeEnabled) { $output->writeln("Maintenance mode must be disabled when setting default module,"); $output->writeln("in order to load the relevant encryption modules correctly."); - return; + return 1; } $moduleId = $input->getArgument('module'); @@ -81,6 +81,8 @@ class SetDefaultModule extends Command { $output->writeln('<info>Set default module to "' . $moduleId . '"</info>'); } else { $output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>'); + return 1; } + return 0; } } |