From 81843d6e04f091153d53fd188f53d535850b3ac6 Mon Sep 17 00:00:00 2001 From: "dave%intrec.com" <> Date: Fri, 2 Feb 2001 11:29:26 +0000 Subject: Fix for bug 66149: better error message on connection failures. Patch by shie9022@msmailhub.oulan.ou.edu (Alan Shields) --- globals.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'globals.pl') 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; } } -- cgit v1.2.3-24-g4f1b