From: dave%intrec.com <> Date: Fri, 2 Feb 2001 11:29:26 +0000 (+0000) Subject: Fix for bug 66149: better error message on connection failures. Patch by shie9022... X-Git-Tag: bugzilla-2.12~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81843d6e04f091153d53fd188f53d535850b3ac6;p=thirdparty%2Fbugzilla.git Fix for bug 66149: better error message on connection failures. Patch by shie9022@msmailhub.oulan.ou.edu (Alan Shields) --- diff --git a/globals.pl b/globals.pl index 6f4e86a328..f9e853ab2c 100644 --- a/globals.pl +++ b/globals.pl @@ -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; } }