Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Abhijith-Nagaraja authored Feb 5, 2021
1 parent 5690c82 commit 9680309
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/stackInformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
}
Expand Down

0 comments on commit 9680309

Please sign in to comment.