mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17509] Output db tools error test
PHPBB-17509
This commit is contained in:
parent
d8bbe3e58c
commit
50e7103080
2 changed files with 2 additions and 1 deletions
|
@ -478,7 +478,7 @@ class doctrine implements tools_interface
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
// @todo: check if it makes sense to properly handle the exception
|
// @todo: check if it makes sense to properly handle the exception
|
||||||
return false;
|
return $e->getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -405,6 +405,7 @@ class database
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if database version is supported
|
// Check if database version is supported
|
||||||
|
/** @psalm-suppress UndefinedInterfaceMethod */
|
||||||
$db_server_version = $doctrine_db->getWrappedConnection()->getServerVersion();
|
$db_server_version = $doctrine_db->getWrappedConnection()->getServerVersion();
|
||||||
switch ($dbms)
|
switch ($dbms)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue