Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17442: More debug info for DB connectivity prob...

Committer: gariev
More debug info for DB connectivity problems
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2010-09-24 05:32:26 UTC (rev 17441)
+++ trunk/cgi-bin/LJ/User.pm	2010-09-24 06:25:35 UTC (rev 17442)
@@ -579,7 +579,7 @@
 
 sub nodb_err {
     my $u = shift;
-    return "Database handle unavailable (user: " . $u->user . "; cluster: " . $u->clusterid . ")";
+    return "Database handle unavailable [user: " . $u->user . "; cluster: " . $u->clusterid . ", errstr: $DBI::errstr]";
 }
 
 sub is_innodb {

Tags: gariev, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments