mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-28 07:57:01 +00:00
fix
This commit is contained in:
@@ -809,6 +809,7 @@ pub fn error_resp_to_object_err(err: ErrorResponse, params: Vec<&str>) -> std::i
|
|||||||
return std::io::Error::other(ObjectApiError::BackendDown(format!("{err}")));
|
return std::io::Error::other(ObjectApiError::BackendDown(format!("{err}")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let err_ = std::io::Error::other(err.to_string());
|
||||||
let r_err = err;
|
let r_err = err;
|
||||||
let err;
|
let err;
|
||||||
let bucket = bucket.to_string();
|
let bucket = bucket.to_string();
|
||||||
@@ -852,7 +853,7 @@ pub fn error_resp_to_object_err(err: ErrorResponse, params: Vec<&str>) -> std::i
|
|||||||
}
|
}
|
||||||
S3ErrorCode::NoSuchVersion => {
|
S3ErrorCode::NoSuchVersion => {
|
||||||
if !object.is_empty() {
|
if !object.is_empty() {
|
||||||
std::io::Error::other(StorageError::ObjectNotFound(bucket, object)) //, version_id);
|
std::io::Error::other(StorageError::ObjectNotFound(bucket, object));
|
||||||
} else {
|
} else {
|
||||||
std::io::Error::other(StorageError::BucketNotFound(bucket))
|
std::io::Error::other(StorageError::BucketNotFound(bucket))
|
||||||
}
|
}
|
||||||
@@ -876,6 +877,9 @@ pub fn error_resp_to_object_err(err: ErrorResponse, params: Vec<&str>) -> std::i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err
|
||||||
|
}
|
||||||
|
|
||||||
pub fn storage_to_object_err(err: Error, params: Vec<&str>) -> S3Error {
|
pub fn storage_to_object_err(err: Error, params: Vec<&str>) -> S3Error {
|
||||||
let storage_err = &err;
|
let storage_err = &err;
|
||||||
let mut bucket: String = "".to_string();
|
let mut bucket: String = "".to_string();
|
||||||
|
|||||||
Reference in New Issue
Block a user