better error message for database connection failure

This commit is contained in:
Graham Knop 2008-06-26 20:51:04 +00:00
parent 3168aec473
commit fee64b013f

View file

@ -411,7 +411,7 @@ sub connect {
}); });
unless (defined $dbh) { unless (defined $dbh) {
$session->errorHandler->error("Couldn't connect to database: $dsn"); $session->errorHandler->error("Couldn't connect to database: $dsn : $DBI::errstr");
return undef; return undef;
} }