Log roomid along with Unknown room (#4297)

This commit is contained in:
Will Hunt 2018-12-24 09:49:42 +00:00 committed by Richard van der Hoff
parent cd018e3543
commit 0708f437cc
2 changed files with 2 additions and 1 deletions

1
changelog.d/4297.misc Normal file
View File

@ -0,0 +1 @@
Log room_id in Unknown room errors

View File

@ -432,7 +432,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
create_id = state_ids.get((EventTypes.Create, ""))
if not create_id:
raise NotFoundError("Unknown room")
raise NotFoundError("Unknown room %s" % (room_id))
create_event = yield self.get_event(create_id)
defer.returnValue(create_event.content.get("room_version", "1"))