0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-20 12:24:59 +01:00

Mention the session ID in the error message

This commit is contained in:
Brendan Abolivier 2020-03-06 15:07:28 +00:00
parent 45df9d35a9
commit 297aaf4816
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD

View file

@ -209,8 +209,9 @@ class E2eRoomKeysHandler(object):
for session_id, room_key in iteritems(room["sessions"]): for session_id, room_key in iteritems(room["sessions"]):
if not isinstance(room_key["is_verified"], bool): if not isinstance(room_key["is_verified"], bool):
msg = ( msg = (
"is_verified must be a boolean in keys for room %s" "is_verified must be a boolean in keys for session %s in"
% room_id "room %s"
% (session_id, room_id)
) )
raise SynapseError(400, msg, Codes.INVALID_PARAM) raise SynapseError(400, msg, Codes.INVALID_PARAM)