summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-02 10:52:39 +0100
committerErik Johnston <erik@matrix.org>2014-09-02 10:58:33 +0100
commited25abe05fe3c6509b8245cb760cb7098dd8de72 (patch)
tree11fad785a93334ffa585b39b3bd0fa6cc5ae4f75
parentDefault HTTP and HTTPS ports to 8008 and 8448 (diff)
downloadsynapse-ed25abe05fe3c6509b8245cb760cb7098dd8de72.tar.xz
Add message to assertion
Diffstat (limited to '')
-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())