diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-02 10:52:39 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-02 10:58:33 +0100 |
commit | ed25abe05fe3c6509b8245cb760cb7098dd8de72 (patch) | |
tree | 11fad785a93334ffa585b39b3bd0fa6cc5ae4f75 | |
parent | Default HTTP and HTTPS ports to 8008 and 8448 (diff) | |
download | synapse-ed25abe05fe3c6509b8245cb760cb7098dd8de72.tar.xz |
Add message to assertion
-rw-r--r-- | synapse/handlers/message.py | 2 |
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()) |