summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-03-06 15:07:28 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-03-06 15:07:41 +0000
commit297aaf48166f153d35c38160d0c747770d925f39 (patch)
treec475d3f724212848a8ecc8afb25efde52368e827
parentLint (diff)
downloadsynapse-297aaf48166f153d35c38160d0c747770d925f39.tar.xz
Mention the session ID in the error message
-rw-r--r--synapse/handlers/e2e_room_keys.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/e2e_room_keys.py b/synapse/handlers/e2e_room_keys.py
index a953a7fe04..cad38d2bdd 100644
--- a/synapse/handlers/e2e_room_keys.py
+++ b/synapse/handlers/e2e_room_keys.py
@@ -209,8 +209,9 @@ class E2eRoomKeysHandler(object):
                 for session_id, room_key in iteritems(room["sessions"]):
                     if not isinstance(room_key["is_verified"], bool):
                         msg = (
-                            "is_verified must be a boolean in keys for room %s"
-                            % room_id
+                            "is_verified must be a boolean in keys for session %s in"
+                            "room %s"
+                            % (session_id, room_id)
                         )
                         raise SynapseError(400, msg, Codes.INVALID_PARAM)