Skip to content

Commit

Permalink
Special 404 error case
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebsguedes committed Apr 23, 2024
1 parent 8bdcd03 commit 4c20d6e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions object_store/src/azure/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,18 @@ fn parse_response_part(

match (id, part_response.code) {
(Some(_id), Some(code)) if (200..300).contains(&code) => {}
(Some(id), Some(404)) => {
results[id] = Err(crate::Error::NotFound {
path: paths[id].as_ref().to_string(),
source: Error::DeleteFailed {
path: paths[id].as_ref().to_string(),
code: 404.to_string(),
reason: part_response.reason.unwrap_or_default().to_string(),
}
.into(),
}
.into());
}
(Some(id), Some(code)) => {
results[id] = Err(Error::DeleteFailed {
path: paths[id].as_ref().to_string(),
Expand Down

0 comments on commit 4c20d6e

Please sign in to comment.