mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Try next registry endpoint on 404.
This commit is contained in:
@@ -45,7 +45,7 @@ function lookup(name, options, callback) {
|
||||
}
|
||||
|
||||
doRequest(name, index, that._config, function (err, entry) {
|
||||
if (err) {
|
||||
if (err || !entry) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ function lookup(name, options, callback) {
|
||||
// make only the request
|
||||
} else {
|
||||
doRequest(name, index, that._config, function (err, entry) {
|
||||
if (err) {
|
||||
if (err || !entry) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user