diff --git a/packages/amplify-provider-awscloudformation/src/aws-utils/aws-cfn.js b/packages/amplify-provider-awscloudformation/src/aws-utils/aws-cfn.js index 2b0b99320f8..c3163321411 100644 --- a/packages/amplify-provider-awscloudformation/src/aws-utils/aws-cfn.js +++ b/packages/amplify-provider-awscloudformation/src/aws-utils/aws-cfn.js @@ -418,7 +418,7 @@ class CloudFormation { if (completeErr) { await this.collectStackErrors(cfnParentStackParams.StackName).then((errorDetails) => { - completeErr.message = `${completeErr.message} \n ${errorDetails}`; + completeErr.message = `${completeErr.message}${EOL}${errorDetails}`; reject(completeErr); }); } else {