Fix feedback handling after legacy install

- Pass back feedback from legacy
This commit is contained in:
Clemente Raposo 2025-01-13 13:07:20 +00:00 committed by c.raposo
parent a2c7628722
commit e6b0e00d50

View file

@ -81,17 +81,11 @@ class RunLegacyInstall implements InstallStepInterface
{
$result = $this->handler->installLegacy();
$feedback = new Feedback();
$feedback->setSuccess(true);
$feedback->setMessages(['Legacy install successful']);
if ($result === false) {
$feedback->setSuccess(false);
$feedback->setMessages(['Legacy install failed']);
$feedback->setStatusCode(InstallStatus::FAILED);
if ($result->isSuccess() === false) {
$result->setStatusCode(InstallStatus::FAILED);
}
return $feedback;
return $result;
}
}