summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2018-12-24 09:49:42 +0000
committerRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-12-24 10:49:42 +0100
commit0708f437ccfb57fe44e2d993f57163a844fe726c (patch)
treefe5b9acf973939800b66bcfd2db3881f9a51d58b
parentMerge pull request #4307 from matrix-org/erikj/v2_rooms (diff)
downloadsynapse-0708f437ccfb57fe44e2d993f57163a844fe726c.tar.xz
Log roomid along with Unknown room (#4297)
-rw-r--r--changelog.d/4297.misc1
-rw-r--r--synapse/storage/state.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/4297.misc b/changelog.d/4297.misc
new file mode 100644
index 0000000000..63106e26f6
--- /dev/null
+++ b/changelog.d/4297.misc
@@ -0,0 +1 @@
+Log room_id in Unknown room errors
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index d737bd6778..a134e9b3e8 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -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"))