Fix typo
This commit is contained in:
parent
07a3a6fa9a
commit
090d0fe684
|
@ -1947,9 +1947,10 @@ impl Rooms {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
return match e {
|
return match e {
|
||||||
ruma::signatures::Error::PduSize => {
|
ruma::signatures::Error::PduSize => Err(Error::BadRequest(
|
||||||
Err(Error::BadRequest(ErrorKind::TooLarge, "Message is to long"))
|
ErrorKind::TooLarge,
|
||||||
}
|
"Message is too long",
|
||||||
|
)),
|
||||||
_ => Err(Error::BadRequest(
|
_ => Err(Error::BadRequest(
|
||||||
ErrorKind::Unknown,
|
ErrorKind::Unknown,
|
||||||
"Signing event failed",
|
"Signing event failed",
|
||||||
|
|
Loading…
Reference in New Issue