From 53dbeee52b0752508517cb30f550d4b5a8533418 Mon Sep 17 00:00:00 2001 From: Xian Zhang Date: Mon, 16 Aug 2021 21:36:08 -0400 Subject: [PATCH] fix: update error message in util function --- .../packages/base-raas-services/lib/helpers/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/addon-base-raas/packages/base-raas-services/lib/helpers/utils.js b/addons/addon-base-raas/packages/base-raas-services/lib/helpers/utils.js index aaeaf3dee6..b3ad7b9990 100644 --- a/addons/addon-base-raas/packages/base-raas-services/lib/helpers/utils.js +++ b/addons/addon-base-raas/packages/base-raas-services/lib/helpers/utils.js @@ -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 }