]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 66149: better error message on connection failures. Patch by shie9022...
authordave%intrec.com <>
Fri, 2 Feb 2001 11:29:26 +0000 (11:29 +0000)
committerdave%intrec.com <>
Fri, 2 Feb 2001 11:29:26 +0000 (11:29 +0000)
globals.pl

index 6f4e86a32843325c3ef3f76bbfa49d1543fdd1e1..f9e853ab2c48be76b83bc930eb5c88d13a78fc97 100644 (file)
@@ -91,7 +91,7 @@ sub ConnectToDatabase {
             $::dbwritesallowed = 0;
         }
        $::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;
     }
 }