Show cloudformation messages when any errors are happning while updating/creating projects

This commit is contained in:
ryutamaki 2016-01-14 23:28:45 +09:00
parent 712f7f99b8
commit 15386ced65

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