Update message to include a case of complete deletion.

This commit is contained in:
exoego 2019-01-18 06:26:30 +09:00
parent d4cb2b6684
commit e334bcd40a
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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(' '));
});