diff --git a/webapp/src/Command/CheckDatabaseConfigurationDefaultValuesCommand.php b/webapp/src/Command/CheckDatabaseConfigurationDefaultValuesCommand.php index 7149445a20..ffbe6dc0cf 100644 --- a/webapp/src/Command/CheckDatabaseConfigurationDefaultValuesCommand.php +++ b/webapp/src/Command/CheckDatabaseConfigurationDefaultValuesCommand.php @@ -64,13 +64,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int break; } } - if (empty($messages)) { - $style->success('All default values have the correct type'); - } else { + if (!empty($messages)) { $style->error('Some default values have the wrong type:'); $style->listing($messages); + return Command::FAILURE; } - + $style->success('All default values have the correct type'); return Command::SUCCESS; } }