diff --git a/geneit_backend/src/connections/s3_connection.rs b/geneit_backend/src/connections/s3_connection.rs
index 057b0c1..6ee516d 100644
--- a/geneit_backend/src/connections/s3_connection.rs
+++ b/geneit_backend/src/connections/s3_connection.rs
@@ -22,11 +22,11 @@ pub async fn create_bucket_if_required() -> anyhow::Result<()> {
log::debug!("The bucket already exists.");
return Ok(());
}
- Err(S3Error::Http(404, s)) if s.contains("NoSuchKey
") => {
+ Err(S3Error::HttpFailWithBody(404, s)) if s.contains("NoSuchKey
") => {
log::warn!("Failed to fetch bucket location, but it seems that bucket exists.");
return Ok(());
}
- Err(S3Error::Http(404, s)) if s.contains("NoSuchBucket
") => {
+ Err(S3Error::HttpFailWithBody(404, s)) if s.contains("NoSuchBucket
") => {
log::warn!("The bucket does not seem to exists, trying to create it!")
}
Err(e) => {