Try next registry endpoint on 404.

This commit is contained in:
André Cruz
2013-05-24 22:53:17 +01:00
parent 1d9504d0f0
commit c7780a2708

View File

@@ -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);
}