Skip to content
Snippets Groups Projects
Unverified Commit 2b8d28b0 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Merge pull request #3960 from matrix-org/rav/fix_missing_create_event_error

Fix error handling for missing auth_event
parents 7232917f 5908a8f6
No related branches found
No related tags found
No related merge requests found
Fix error message for events with m.room.create missing from auth_events
\ No newline at end of file
......@@ -98,9 +98,9 @@ def check(event, auth_events, do_sig_check=True, do_size_check=True):
creation_event = auth_events.get((EventTypes.Create, ""), None)
if not creation_event:
raise SynapseError(
raise AuthError(
403,
"Room %r does not exist" % (event.room_id,)
"No create event in auth events",
)
creating_domain = get_domain_from_id(event.room_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment