mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33: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 {
|
if !stateResp.RoomExists {
|
||||||
return util.JSONResponse{
|
util.GetLogger(req.Context()).Errorf("Room not found for event %s", r.requestedEvent.EventID())
|
||||||
Code: http.StatusNotFound,
|
return jsonerror.InternalServerError()
|
||||||
JSON: jsonerror.NotFound("The event was not found or you do not have permission to read this event."),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if !stateResp.PrevEventsExist {
|
if !stateResp.PrevEventsExist {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue