mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 09:31:35 +03:00
change other 404 to a SynapseError
This commit is contained in:
parent
dc361798e5
commit
9d567cc26c
1 changed files with 2 additions and 2 deletions
|
@ -582,8 +582,8 @@ class RoomEventServlet(RestServlet):
|
||||||
if event:
|
if event:
|
||||||
event = yield self._event_serializer.serialize_event(event, time_now)
|
event = yield self._event_serializer.serialize_event(event, time_now)
|
||||||
return (200, event)
|
return (200, event)
|
||||||
else:
|
|
||||||
return (404, "Event not found.")
|
return SynapseError(404, "Event not found.", errcode=Codes.NOT_FOUND)
|
||||||
|
|
||||||
|
|
||||||
class RoomEventContextServlet(RestServlet):
|
class RoomEventContextServlet(RestServlet):
|
||||||
|
|
Loading…
Reference in a new issue