mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16292] Try to propagate serious errors to the installer UI
Only raise a runtime exception during install/update as a last resort. PHPBB3-16292
This commit is contained in:
parent
3e0b20820a
commit
62a45d86ec
1 changed files with 12 additions and 1 deletions
|
@ -93,7 +93,18 @@ 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>';
|
||||
|
||||
throw new \phpbb\exception\runtime_exception($msg);
|
||||
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);
|
||||
}
|
||||
break;
|
||||
case E_DEPRECATED:
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue