Return error instead of panic when first event is not m.room.create

This commit is contained in:
Val Lorentz 2023-12-02 17:51:19 +01:00
parent 520806d413
commit 5a7bb1e8f1
2 changed files with 23 additions and 12 deletions

View file

@ -82,6 +82,8 @@ pub enum Error {
PathError(#[from] axum::extract::rejection::PathRejection),
#[error("from {0}: {1}")]
RedactionError(OwnedServerName, ruma::canonical_json::RedactionError),
#[error("{0} in {1}")]
InconsistentRoomState(&'static str, ruma::OwnedRoomId),
}
impl Error {