kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2011-08-22 05:50 pm

[dw-free] Make LJ::User->nodb_err spit out more error info

[commit: http://hg.dwscoalition.org/dw-free/rev/f8d69a150bb1]

http://bugs.dwscoalition.org/show_bug.cgi?id=3079

Include $DBI::errstr in the nodb_err message.

Codemerge from LiveJournal; packaged for Dreamwidth by [staff profile] denise.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r b2f1918b5769 -r f8d69a150bb1 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Mon Aug 22 12:22:13 2011 -0500
+++ b/cgi-bin/LJ/User.pm	Mon Aug 22 12:49:51 2011 -0500
@@ -1462,7 +1462,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]";
 }
 
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org