[dep-upgrade-202402] rename BytesBody into ErrorBody for clarity

This commit is contained in:
Alex Auvolat
2024-02-07 14:45:52 +01:00
parent fe48d60d2b
commit e524e7a30d
6 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -168,7 +168,7 @@ impl ApiError for Error {
}
}
fn http_body(&self, garage_region: &str, path: &str) -> BytesBody {
fn http_body(&self, garage_region: &str, path: &str) -> ErrorBody {
let error = s3_xml::Error {
code: s3_xml::Value(self.aws_code().to_string()),
message: s3_xml::Value(format!("{}", self)),
@@ -185,6 +185,6 @@ impl ApiError for Error {
"#
.into()
});
string_bytes_body(error_str)
error_body(error_str)
}
}