Merge pull request #483 from ryutamaki/show-cloudformation-messages

Show cloudformation error message
This commit is contained in:
Austen 2016-01-16 20:06:00 -08:00
commit 182dc11a80

View File

@ -367,7 +367,7 @@ module.exports = function(config) {
if (!stackStatus || validStatuses.indexOf(stackStatus) === -1) {
let prefix = createOrUpdate.slice(0,-1);
return reject(new SError(
`Something went wrong while ${prefix}ing your cloudformation`));
`An error occurs while ${prefix}ing your cloudformation. REASON: ${stackData.Stacks[0].StackStatusReason}`));
} else {
return callback();
}