Skip to content

Commit 9680309

Browse files
This is an inspiration from the fix that @Enase provided long back and not merged. Tested in my local setup and works. Fixes issue serverless-heaven#186 and serverless-heaven#200
1 parent 5690c82 commit 9680309

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/stackInformation.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,14 @@ module.exports = {
8282
.mapSeries(stack => BbPromise.join(BbPromise.resolve(stack), this.aliasStackLoadTemplate(stack)))
8383
.map(stackInfo => ({ stack: stackInfo[0], template: stackInfo[1] }))
8484
.catch(err => {
85-
if (err.statusCode === 400) {
85+
if (
86+
err.statusCode === 400 ||
87+
(
88+
err.statusCode === undefined &&
89+
err.providerError &&
90+
err.providerError.statusCode === 400
91+
)
92+
) {
8693
// The export is not yet there. Can happen on the very first alias stack deployment.
8794
return BbPromise.resolve([]);
8895
}

0 commit comments

Comments
 (0)