mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-27 15:37:03 +00:00
[dep-upgrade-202402] rename BytesBody into ErrorBody for clarity
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user