Added another Minio update fix

This commit is contained in:
Kenneth Skovhede
2025-04-15 12:16:05 +02:00
parent db872aa09f
commit 8fa68b75dc
@@ -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)