This commit is contained in:
Zeyphros 2022-04-13 00:08:55 +02:00
parent 07a3a6fa9a
commit 090d0fe684
No known key found for this signature in database
GPG Key ID: AD4D831FBD76C521
1 changed files with 4 additions and 3 deletions

View File

@ -1947,9 +1947,10 @@ impl Rooms {
Ok(_) => {}
Err(e) => {
return match e {
ruma::signatures::Error::PduSize => {
Err(Error::BadRequest(ErrorKind::TooLarge, "Message is to long"))
}
ruma::signatures::Error::PduSize => Err(Error::BadRequest(
ErrorKind::TooLarge,
"Message is too long",
)),
_ => Err(Error::BadRequest(
ErrorKind::Unknown,
"Signing event failed",