Skip to content

Commit aaf0b62

Browse files
Use proper error code
1 parent a496606 commit aaf0b62

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/ImageSharp.Web.Tests/TestUtilities/AWSS3StorageImageProviderFactory.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,14 @@ private static async Task InitializeAWSStorageAsync(IServiceProvider services, A
5959
}
6060
catch (AmazonS3Exception e)
6161
{
62-
// CI tests are run in parallel and can sometime return a
62+
// CI tests are run in parallel and can sometimes return a
6363
// false negative for the existance of a bucket.
64-
if (string.Equals(e.ErrorCode, "BucketExists"))
64+
if (string.Equals(e.ErrorCode, "BucketAlreadyExists"))
6565
{
6666
return;
6767
}
6868

69-
// Temp to capture error code
70-
throw new Exception(e.ErrorCode);
69+
throw;
7170
}
7271
}
7372

0 commit comments

Comments
 (0)