Skip to content

Commit

Permalink
Fix the canary lambda build
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisanti committed Oct 21, 2022
1 parent 9267cee commit 7a043e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/ci-cdk/canary-lambda/src/s3_canary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ pub async fn s3_canary(client: s3::Client, s3_bucket_name: String) -> anyhow::Re
CanaryError(format!("Expected object {} to not exist in S3", test_key)).into(),
);
}
Err(SdkError::ServiceError {
err:
Err(SdkError::ServiceError(context))
if matches!(
context.err(),
GetObjectError {
kind: GetObjectErrorKind::NoSuchKey { .. },
..
},
..
}) => {
}
) =>
{
// good
}
Err(err) => {
Expand Down

0 comments on commit 7a043e5

Please sign in to comment.