Skip to content

Commit

Permalink
fix: update error message in util function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian Zhang committed Aug 17, 2021
1 parent 518b651 commit 53dbeee
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 53dbeee

Please sign in to comment.