finish upgrade ruma

This commit is contained in:
Timo Kösters
2022-12-17 09:21:19 +01:00
parent d39ce1401d
commit f1d2574651
6 changed files with 40 additions and 38 deletions

View File

@@ -102,7 +102,10 @@ impl Error {
if let Self::FederationError(origin, error) = self {
let mut error = error.clone();
error.message = format!("Answer from {}: {}", origin, error.message);
error.body = ErrorBody::Standard {
kind: Unknown,
message: format!("Answer from {}: {}", origin, error),
};
return RumaResponse(UiaaResponse::MatrixError(error));
}