From e334bcd40a2b59abccbde93ef6a87e60d4230aed Mon Sep 17 00:00:00 2001 From: exoego Date: Fri, 18 Jan 2019 06:26:30 +0900 Subject: [PATCH] Update message to include a case of complete deletion. --- lib/plugins/aws/deploy/lib/checkForChanges.js | 2 +- lib/plugins/aws/deploy/lib/checkForChanges.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/aws/deploy/lib/checkForChanges.js b/lib/plugins/aws/deploy/lib/checkForChanges.js index 470b2ae33..bbc7bc0e5 100644 --- a/lib/plugins/aws/deploy/lib/checkForChanges.js +++ b/lib/plugins/aws/deploy/lib/checkForChanges.js @@ -49,7 +49,7 @@ module.exports = { return BbPromise.reject(new this.serverless.classes.Error([ `The serverless deployment bucket "${params.Bucket}" does not exist.`, `Create it manually if you want to reuse the CloudFormation stack "${stackName}",`, - 'or delete the stack then run "sls deploy".', + 'or delete the stack if it is no longer required.', ].join(' '))); }).then((result) => { if (result && result.Contents && result.Contents.length) { diff --git a/lib/plugins/aws/deploy/lib/checkForChanges.test.js b/lib/plugins/aws/deploy/lib/checkForChanges.test.js index d5542c18d..4a8e9fb4f 100644 --- a/lib/plugins/aws/deploy/lib/checkForChanges.test.js +++ b/lib/plugins/aws/deploy/lib/checkForChanges.test.js @@ -142,7 +142,7 @@ describe('checkForChanges', () => { return expect(awsDeploy.getMostRecentObjects()).to.be.rejectedWith([ `The serverless deployment bucket "${awsDeploy.bucketName}" does not exist.`, 'Create it manually if you want to reuse the CloudFormation stack "my-service-dev",', - 'or delete the stack then run "sls deploy".', + 'or delete the stack if it is no longer required.', ].join(' ')); });