Add message to assertion

paul/schema_breaking_changes
Erik Johnston 2014-09-02 10:52:39 +01:00
parent 08d2f902dd
commit ed25abe05f
1 changed files with 1 additions and 1 deletions

View File

@ -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())