Skip to content

Commit

Permalink
throw error if not catched using bluebird Promise.done()
Browse files Browse the repository at this point in the history
  • Loading branch information
hthetiot committed Feb 28, 2018
1 parent 3be5973 commit c2e7bb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions montage.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@
});
}

applicationRequirePromise.then(function (applicationRequire) {
return applicationRequirePromise.then(function (applicationRequire) {
return applicationRequire.loadPackage({
location: montageLocation,
hash: params.montageHash
Expand Down Expand Up @@ -829,7 +829,9 @@

return platform.initMontage(montageRequire, applicationRequire, params);
});
});

// Will throw error if there is one
}).done();
});
};

Expand Down

0 comments on commit c2e7bb8

Please sign in to comment.