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"); } }