diff options
author | Alex Auvolat <alex@adnab.me> | 2024-02-07 14:45:52 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-02-07 14:45:52 +0100 |
commit | e524e7a30d4d81c84f1c110017ad972dc5617bf6 (patch) | |
tree | 446b074e199c47c109fa517e5ec6717c2fe15b5f /src/api/k2v/error.rs | |
parent | fe48d60d2b63a9914297558bd5dbccae8d96c947 (diff) | |
download | garage-e524e7a30d4d81c84f1c110017ad972dc5617bf6.tar.gz garage-e524e7a30d4d81c84f1c110017ad972dc5617bf6.zip |
[dep-upgrade-202402] rename BytesBody into ErrorBody for clarity
Diffstat (limited to 'src/api/k2v/error.rs')
-rw-r--r-- | src/api/k2v/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/k2v/error.rs b/src/api/k2v/error.rs index 72e712bf..16479227 100644 --- a/src/api/k2v/error.rs +++ b/src/api/k2v/error.rs @@ -94,7 +94,7 @@ impl ApiError for Error { header_map.append(header::CONTENT_TYPE, "application/json".parse().unwrap()); } - fn http_body(&self, garage_region: &str, path: &str) -> BytesBody { + fn http_body(&self, garage_region: &str, path: &str) -> ErrorBody { let error = CustomApiErrorBody { code: self.code().to_string(), message: format!("{}", self), @@ -110,6 +110,6 @@ impl ApiError for Error { "# .into() }); - string_bytes_body(error_str) + error_body(error_str) } } |