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 res.send(info);
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Promise(function(resolve, reject) {
|
return sourceInfoPromise.then(function() {
|
||||||
sourceInfoPromise.then(function() {
|
return app;
|
||||||
resolve(app);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue