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(); $result = $this->handler->installLegacy();
$feedback = new Feedback(); if ($result->isSuccess() === false) {
$feedback->setSuccess(true); $result->setStatusCode(InstallStatus::FAILED);
$feedback->setMessages(['Legacy install successful']);
if ($result === false) {
$feedback->setSuccess(false);
$feedback->setMessages(['Legacy install failed']);
$feedback->setStatusCode(InstallStatus::FAILED);
} }
return $feedback; return $result;
} }
} }