mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-21 20:24:32 +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:
|
||||
event = yield self._event_serializer.serialize_event(event, time_now)
|
||||
return (200, event)
|
||||
else:
|
||||
return (404, "Event not found.")
|
||||
|
||||
return SynapseError(404, "Event not found.", errcode=Codes.NOT_FOUND)
|
||||
|
||||
|
||||
class RoomEventContextServlet(RestServlet):
|
||||
|
|
Loading…
Reference in a new issue