mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Better error for unexpected "room doesn't exist"
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
bb44e6de49
commit
b982eb2095
|
|
@ -108,10 +108,8 @@ func GetEvent(
|
|||
}
|
||||
|
||||
if !stateResp.RoomExists {
|
||||
return util.JSONResponse{
|
||||
Code: http.StatusNotFound,
|
||||
JSON: jsonerror.NotFound("The event was not found or you do not have permission to read this event."),
|
||||
}
|
||||
util.GetLogger(req.Context()).Errorf("Room not found for event %s", r.requestedEvent.EventID())
|
||||
return jsonerror.InternalServerError()
|
||||
}
|
||||
|
||||
if !stateResp.PrevEventsExist {
|
||||
|
|
|
|||
Loading…
Reference in a new issue