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

[livejournal] r18676: LJSUP-8314: error: Can't call LJ::join_c...

Committer: gariev
LJSUP-8314: error: Can't call LJ::join_community(ljwebt151, com150)
more verbose error message
U   trunk/cgi-bin/communitylib.pl
Modified: trunk/cgi-bin/communitylib.pl
===================================================================
--- trunk/cgi-bin/communitylib.pl	2011-03-23 02:24:42 UTC (rev 18675)
+++ trunk/cgi-bin/communitylib.pl	2011-03-23 03:51:40 UTC (rev 18676)
@@ -351,7 +351,8 @@
     # 1, 0 means add comm to user's friends list, but don't auto-add P edge.
     if ($args->{'member'}) {
         if (!LJ::join_community($u, $cu, 1, 0)) {
-            return LJ::error("Can't call LJ::join_community($u->{user}, $cu->{user})");
+            my $last_error = LJ::last_error();
+            return LJ::error("Can't call LJ::join_community($u->{user}, $cu->{user}): $last_error");
         }
     }
 

Tags: gariev, livejournal, pl
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