From e8785927a3901b590b2b8e5ceb1278b376d9655b Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@status.net>
Date: Sun, 18 Sep 2011 19:28:44 -0400
Subject: [PATCH] log the problem when there's an exception leaving a group

---
 actions/leavegroup.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/actions/leavegroup.php b/actions/leavegroup.php
index 9e560b9717..b8aaf83d20 100644
--- a/actions/leavegroup.php
+++ b/actions/leavegroup.php
@@ -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.'),
-- 
2.39.5