forked from GNUsocial/gnu-social
log an exception when we can't join a group
This commit is contained in:
parent
be4d9082f9
commit
4f05205fbe
@ -131,6 +131,10 @@ class JoingroupAction extends Action
|
|||||||
try {
|
try {
|
||||||
$result = $cur->joinGroup($this->group);
|
$result = $cur->joinGroup($this->group);
|
||||||
} catch (Exception $e) {
|
} 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: 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.
|
// 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.'),
|
$this->serverError(sprintf(_('Could not join user %1$s to group %2$s.'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user