diff --git a/lib/stackInformation.js b/lib/stackInformation.js index 62479b6..7bce3c3 100644 --- a/lib/stackInformation.js +++ b/lib/stackInformation.js @@ -82,7 +82,14 @@ module.exports = { .mapSeries(stack => BbPromise.join(BbPromise.resolve(stack), this.aliasStackLoadTemplate(stack))) .map(stackInfo => ({ stack: stackInfo[0], template: stackInfo[1] })) .catch(err => { - if (err.statusCode === 400) { + if ( + err.statusCode === 400 || + ( + err.statusCode === undefined && + err.providerError && + err.providerError.statusCode === 400 + ) + ) { // The export is not yet there. Can happen on the very first alias stack deployment. return BbPromise.resolve([]); }