From c0677c3ed10d687fb54c62823015fc8af5f5cbb3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 15 Jun 2024 08:03:36 +0000 Subject: [PATCH] Fix code issues --- geneit_backend/src/connections/s3_connection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {