mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Do not throw err if components folder do not exist.
This commit is contained in:
@@ -555,6 +555,13 @@ Project.prototype._readLinks = function () {
|
||||
.then(function () {
|
||||
return decEndpoints;
|
||||
});
|
||||
// Ignore if folder does not exist
|
||||
}, function (err) {
|
||||
if (err.code !== 'ENOENT') {
|
||||
throw err;
|
||||
}
|
||||
|
||||
return {};
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user