Compare commits

...

3 Commits

Author SHA1 Message Date
odain-cbd
bd33c74e26 Update setup/unattended-install/unattended-install.php
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-06-22 17:24:05 +02:00
odain
38b5b05534 💚 capture FATALs only 2026-06-19 11:37:33 +02:00
odain
32998fe415 💚 change unattended output in case of painless FATAL 2026-06-17 15:30:11 +02:00

View File

@@ -7,8 +7,12 @@ function fatalHandler()
{
$error = error_get_last();
if ($error) {
SetupLog::Error("Fatal error during setup", null, $error);
echo "Fatal Error occured: {$error["message"]}";
if ($error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR)) {
// fatal error has occured
echo "PHP Fatal captured: {$error["message"]}";
SetupLog::Error("Fatal error during setup", null, $error);
exit(-1);
}
}
}