We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e8785927 authored by Evan Prodromou's avatar Evan Prodromou

log the problem when there's an exception leaving a group

parent 0ee660af
......@@ -125,6 +125,7 @@ class LeavegroupAction extends Action
try {
$cur->leaveGroup($this->group);
} catch (Exception $e) {
common_log(LOG_ERR, "Error when {$cur->nickname} tried to leave {$this->group->nickname}: " . $e->getMessage());
// TRANS: Server error displayed when leaving a group failed in the database.
// TRANS: %1$s is the leaving user's nickname, $2$s is the group nickname for which the leave failed.
$this->serverError(sprintf(_('Could not remove user %1$s from group %2$s.'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment