Avoid swallowing rejected source info promise
This commit is contained in:
+2
-4
@@ -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);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user