Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ function getIndexes(results, done) {
.collection(ns.collection)
.indexes(function(err, indexes) {
if (err) {
debug('getIndexes failed!', err);
done(err);
return;
}
// add ns field to each index
_.each(indexes, function(idx) {
Expand Down Expand Up @@ -80,7 +82,8 @@ function getIndexStats(results, done) {
debug('$indexStats not yet supported, return empty document', err);
return done(null, {});
}
done(err);
debug('Unknown error while getting index stats!', err);
return done(err);
}
res = _.mapKeys(res, function(stat) {
return stat.name;
Expand Down