Remove exception alert from the installation process

Point to the logs.
This commit is contained in:
Clemente Raposo 2025-01-15 14:59:42 +00:00 committed by c.raposo
parent 4d3aee02bd
commit 9ba41588f4

View file

@ -179,7 +179,8 @@ class InstallHandler extends LegacyHandler
$installResult = $installResult ?? [];
$installResult['success'] = false;
$installResult['messages'] = $installResult['messages'] ?? [];
$installResult['messages'] = array_merge($installResult['messages'], ['Exception: ' . $t->getMessage()]);
$installResult['debug'] = $installResult['debug'] ?? [];
$installResult['debug'] = array_merge($installResult['debug'], ['Exception: ' . $t->getMessage()]);
}
$success = ($installResult['success'] ?? false) && is_file('config.php');
@ -187,7 +188,7 @@ class InstallHandler extends LegacyHandler
$messages = ['SuiteCRM Installation Completed'];
if (!$success) {
$messages = ['An error occurred while installing SuiteCRM. Please check the logs.'];
$messages = ["An error occurred while installing SuiteCRM. Please check the '/logs/install.log'."];
}
$messages = array_merge($messages, $installMessages);