From: Evan Prodromou Date: Tue, 23 Aug 2011 14:22:03 +0000 (-0400) Subject: log an exception when we can't join a group X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f05205fbeabe8a812c66413f0fec645416190c5;p=quix0rs-gnu-social.git log an exception when we can't join a group --- diff --git a/actions/joingroup.php b/actions/joingroup.php index bb7b835915..fa5968a2c4 100644 --- a/actions/joingroup.php +++ b/actions/joingroup.php @@ -131,6 +131,10 @@ class JoingroupAction extends Action try { $result = $cur->joinGroup($this->group); } catch (Exception $e) { + common_log(LOG_ERR, sprintf("Couldn't join user %s to group %s: '%s'", + $cur->nickname, + $this->group->nickname, + $e->getMessage())); // TRANS: Server error displayed when joining a group failed in the database. // TRANS: %1$s is the joining user's nickname, $2$s is the group nickname for which the join failed. $this->serverError(sprintf(_('Could not join user %1$s to group %2$s.'),