mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 06:08:19 +01:00
Merge pull request #6208 from Noxwizard/ticket/16292
[ticket/16292] Propagate more errors to the installer UI
This commit is contained in:
commit
20fbe0e254
@ -93,6 +93,21 @@ function installer_msg_handler($errno, $msg_text, $errfile, $errline)
|
||||
case E_USER_ERROR:
|
||||
$msg = '<b>General Error:</b><br>' . $msg_text . '<br> in file ' . $errfile . ' on line ' . $errline . '<br><br>';
|
||||
|
||||
if (!empty($phpbb_installer_container))
|
||||
{
|
||||
try
|
||||
{
|
||||
/** @var \phpbb\install\helper\iohandler\iohandler_interface $iohandler */
|
||||
$iohandler = $phpbb_installer_container->get('installer.helper.iohandler');
|
||||
$iohandler->add_error_message($msg);
|
||||
$iohandler->send_response(true);
|
||||
exit();
|
||||
}
|
||||
catch (\phpbb\install\helper\iohandler\exception\iohandler_not_implemented_exception $e)
|
||||
{
|
||||
throw new \phpbb\exception\runtime_exception($msg);
|
||||
}
|
||||
}
|
||||
throw new \phpbb\exception\runtime_exception($msg);
|
||||
break;
|
||||
case E_DEPRECATED:
|
||||
|
Loading…
x
Reference in New Issue
Block a user