Avoid swallowing rejected source info promise
This commit is contained in:
parent
3d48485475
commit
f545076986
1 changed files with 2 additions and 4 deletions
|
@ -176,9 +176,7 @@ module.exports = function(options, repo, params, id, styles) {
|
|||
return res.send(info);
|
||||
});
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
sourceInfoPromise.then(function() {
|
||||
resolve(app);
|
||||
});
|
||||
return sourceInfoPromise.then(function() {
|
||||
return app;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue