1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[ticket/17525] Correctly handle Doctrine DB tools exceptions, enrich error info

PHPBB-17525
This commit is contained in:
rxu
2025-06-15 13:03:55 +07:00
parent e34e1759c7
commit 8d1f8af7c6
5 changed files with 27 additions and 27 deletions

View File

@@ -276,6 +276,12 @@ class acp_extensions
{
$this->template->assign_var('MIGRATOR_ERROR', $e->getLocalisedMessage($this->user));
}
catch (\Exception $e)
{
$stack_trace = phpbb_filter_root_path(str_replace("\n", '<br>', $e->getTraceAsString()));
$message = $e->getMessage();
$this->template->assign_var('MIGRATOR_ERROR', '<b>' . $message . '</b><br><br>' . $stack_trace);
}
$this->tpl_name = 'acp_ext_enable';