Commit 81843d6e authored by dave%intrec.com's avatar dave%intrec.com

Fix for bug 66149: better error message on connection failures. Patch by…

Fix for bug 66149: better error message on connection failures. Patch by shie9022@msmailhub.oulan.ou.edu (Alan Shields)
parent cbd206cb
...@@ -91,7 +91,7 @@ sub ConnectToDatabase { ...@@ -91,7 +91,7 @@ sub ConnectToDatabase {
$::dbwritesallowed = 0; $::dbwritesallowed = 0;
} }
$::db = DBI->connect("DBI:mysql:host=$::db_host;database=$name", $::db_user, $::db_pass) $::db = DBI->connect("DBI:mysql:host=$::db_host;database=$name", $::db_user, $::db_pass)
|| die "Can't connect to database server.\n"; || die $DBI::errstr;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment