diff options
author | dave%intrec.com <> | 2001-02-02 12:29:26 +0100 |
---|---|---|
committer | dave%intrec.com <> | 2001-02-02 12:29:26 +0100 |
commit | 81843d6e04f091153d53fd188f53d535850b3ac6 (patch) | |
tree | b4f643f7d7f610d4a981af97b8be47a1012beaed | |
parent | cbd206cbe1e92ac39f1bf25e8a58ceaf51254a93 (diff) | |
download | bugzilla-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)
-rw-r--r-- | globals.pl | 2 |
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; } } |