Skip to content

Commit 0c40d21

Browse files
committed
MC-17992: [Backport] Error in app:config:import isn't logged during setup:upgrade
1 parent 76f484d commit 0c40d21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup/src/Magento/Setup/Console/Command/UpgradeCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
9797
$importConfigCommand = $this->getApplication()->find(ConfigImportCommand::COMMAND_NAME);
9898
$arrayInput = new ArrayInput([]);
9999
$arrayInput->setInteractive($input->isInteractive());
100-
$importConfigCommand->run($arrayInput, $output);
100+
$result = $importConfigCommand->run($arrayInput, $output);
101+
if ($result === \Magento\Framework\Console\Cli::RETURN_FAILURE) {
102+
throw new \Magento\Framework\Exception\RuntimeException(
103+
__('%1 failed. See previous output.', ConfigImportCommand::COMMAND_NAME)
104+
);
105+
}
101106
}
102107

103108
if (!$keepGenerated && $this->appState->getMode() === AppState::MODE_PRODUCTION) {

0 commit comments

Comments
 (0)