mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
1 parent
d1b82ea225
commit
9d0ce3965e
3 files changed
+3
-3
No files matched your search
@@ -86,7 +86,7 @@ pub(super) fn bad_request_code(kind: &ErrorKind) -> StatusCode {
|
||||
|
||||
pub(super) fn ruma_error_message(error: &ruma::api::client::error::Error) -> String {
|
||||
if let ErrorBody::Standard { message, .. } = &error.body {
|
||||
return message.to_string();
|
||||
return message.clone();
|
||||
}
|
||||
|
||||
format!("{error}")
|
||||
|
||||
Reference in new issue
Block a user