We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a093d57 commit b614282Copy full SHA for b614282
lib/Kumbia/ActiveRecord/Db.php
@@ -72,7 +72,8 @@ private static function connect($config)
72
try {
73
$dbh = new PDO($config['dsn'], $config['username'], $config['password'], $config['params']);
74
} catch (\PDOException $e) { //TODO: comprobar
75
- throw new \RuntimeException("No se pudo realizar la conexión con '{$config['dsn']}', compruebe su configuración.");
+ $message = $e->getMessage();
76
+ throw new \RuntimeException("No se pudo realizar la conexión con '{$config['dsn']}'. {$message}");
77
}
78
79
return $dbh;
0 commit comments