mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-21 02:16:37 +00:00
Implement DeleteObjects
This commit is contained in:
@@ -114,3 +114,15 @@ impl<T> From<tokio::sync::mpsc::error::SendError<T>> for Error {
|
||||
Error::Message(format!("MPSC send error"))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<std::str::Utf8Error> for Error {
|
||||
fn from(e: std::str::Utf8Error) -> Error {
|
||||
Error::BadRequest(format!("Invalid UTF-8: {}", e))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<roxmltree::Error> for Error {
|
||||
fn from(e: roxmltree::Error) -> Error {
|
||||
Error::BadRequest(format!("Invalid XML: {}", e))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user