Skip to content

Commit

Permalink
Merge pull request #661 from awslabs/Fix/egress
Browse files Browse the repository at this point in the history
fix: update error message in util function
  • Loading branch information
MBtea authored Aug 17, 2021
2 parents 75dc22c + 53dbeee commit 485611b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ async function updateS3BucketPolicy(s3Client, s3BucketName, s3Policy, revisedSta
try {
await s3Client.putBucketPolicy({ Bucket: s3BucketName, Policy: JSON.stringify(s3Policy) }).promise();
} catch (error) {
throw this.boom.badRequest(
`Failed updating bucket policy: ${JSON.stringify(
console.error(
`Failed updating bucket policy: ${JSON.stringify(
s3Policy,
)} for bucket: ${s3BucketName}. Check if original bucket policy is too large`,
true,
);
console.error(error);
}
// Update S3 bucket policy
}
Expand Down

0 comments on commit 485611b

Please sign in to comment.