Skip to content

Commit b614282

Browse files
author
Alberto Berroteran
committed
It was added driver message
1 parent a093d57 commit b614282

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Kumbia/ActiveRecord/Db.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private static function connect($config)
7272
try {
7373
$dbh = new PDO($config['dsn'], $config['username'], $config['password'], $config['params']);
7474
} catch (\PDOException $e) { //TODO: comprobar
75-
throw new \RuntimeException("No se pudo realizar la conexión con '{$config['dsn']}', compruebe su configuración.");
75+
$message = $e->getMessage();
76+
throw new \RuntimeException("No se pudo realizar la conexión con '{$config['dsn']}'. {$message}");
7677
}
7778

7879
return $dbh;

0 commit comments

Comments
 (0)