mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[task/refactor-db-testcase] Further improve error messages.
PHPBB3-10043
This commit is contained in:
parent
d3718bf5d4
commit
bd8e5ff79e
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ class phpbb_database_test_connection_manager
|
|||
catch (PDOException $e)
|
||||
{
|
||||
$cleaned_dsn = str_replace($this->config['dbpasswd'], '*password*', $dsn);
|
||||
throw new Exception("Unable do connect to $cleaned_dsn with error: {$e->getMessage()}");
|
||||
throw new Exception("Unable do connect to $cleaned_dsn using PDO with error: {$e->getMessage()}");
|
||||
}
|
||||
|
||||
// good for debug
|
||||
|
@ -338,7 +338,7 @@ class phpbb_database_test_connection_manager
|
|||
}
|
||||
else
|
||||
{
|
||||
$message = 'Supplied dbms is unsupported, must be one of: ';
|
||||
$message = "Supplied dbms \"$dbms\" is not a valid phpBB dbms, must be one of: ";
|
||||
$message .= implode(', ', array_keys($available_dbms));
|
||||
throw new Exception($message);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue