From 8fa68b75dcde6cb97e8763bbef9fa0b82101d3c9 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 15 Apr 2025 12:16:05 +0200 Subject: [PATCH] Added another Minio update fix --- Duplicati/Library/Backend/S3/S3MinioClient.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Duplicati/Library/Backend/S3/S3MinioClient.cs b/Duplicati/Library/Backend/S3/S3MinioClient.cs index d52a7b57c..a4d5b63fb 100644 --- a/Duplicati/Library/Backend/S3/S3MinioClient.cs +++ b/Duplicati/Library/Backend/S3/S3MinioClient.cs @@ -222,6 +222,11 @@ namespace Duplicati.Library.Backend { if (e.ServerResponse?.StatusCode == System.Net.HttpStatusCode.NotFound || e.Response?.Code == "NoSuchKey") throw new FileMissingException($"File {keyName} not found in bucket {bucketName}"); + + if (e is BucketNotFoundException) + throw new FolderMissingException($"Bucket {bucketName} not found"); + if (e is ObjectNotFoundException) + throw new FileMissingException($"File {keyName} not found in bucket {bucketName}"); } private Task ThrowExceptionIfBucketDoesNotExist(string bucketName, CancellationToken cancelToken)