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

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",