From ed25abe05fe3c6509b8245cb760cb7098dd8de72 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 2 Sep 2014 10:52:39 +0100 Subject: Add message to assertion --- synapse/handlers/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 4c74ce3eff..4aeb2089f5 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -78,7 +78,7 @@ class MessageHandler(BaseRoomHandler): """ # TODO(paul): Why does 'event' not have a 'user' object? user = self.hs.parse_userid(event.user_id) - assert(user.is_mine) + assert user.is_mine, "User must be our own: %s" % (user,) if stamp_event: event.content["hsob_ts"] = int(self.clock.time_msec()) -- cgit 1.4.1