Return error instead of panic when first event is not m.room.create
This commit is contained in:
parent
520806d413
commit
5a7bb1e8f1
2 changed files with 23 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue