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