summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
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())