summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authordave%intrec.com <>2001-02-02 12:29:26 +0100
committerdave%intrec.com <>2001-02-02 12:29:26 +0100
commit81843d6e04f091153d53fd188f53d535850b3ac6 (patch)
treeb4f643f7d7f610d4a981af97b8be47a1012beaed /globals.pl
parentcbd206cbe1e92ac39f1bf25e8a58ceaf51254a93 (diff)
downloadbugzilla-81843d6e04f091153d53fd188f53d535850b3ac6.tar.gz
bugzilla-81843d6e04f091153d53fd188f53d535850b3ac6.tar.xz
Fix for bug 66149: better error message on connection failures. Patch by shie9022@msmailhub.oulan.ou.edu (Alan Shields)
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 6f4e86a32..f9e853ab2 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;
}
}