dblayer : update error message

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2960 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-07-26 07:42:56 +00:00
parent a4b9eb0267
commit 3ac7d3ca22

View File

@@ -135,8 +135,9 @@ class dblayer
throw new Exception (dgettext("domframework", "No valid DSN provided"),
500);
if (! in_array ($driver[0], pdo_drivers ()))
throw new \Exception (dgettext("domframework",
"Driver PDO not available in PHP"), 500);
throw new \Exception (sprintf (dgettext("domframework",
"Driver PDO '%s' not available in PHP"),
$driver[0]), 500);
// Force specifics initialisations
$this->dsn = $dsn;
switch ($driver[0])