diff options
-rw-r--r-- | src/mongo/db/catalog/drop_indexes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/drop_indexes.cpp b/src/mongo/db/catalog/drop_indexes.cpp index 1518ea58815..f8bca17da6d 100644 --- a/src/mongo/db/catalog/drop_indexes.cpp +++ b/src/mongo/db/catalog/drop_indexes.cpp @@ -106,7 +106,7 @@ Status wrappedRun(OperationContext* txn, IndexDescriptor* desc = collection->getIndexCatalog()->findIndexByKeyPattern(txn, f.embeddedObject()); if (desc == NULL) { - return Status(ErrorCodes::InvalidOptions, + return Status(ErrorCodes::IndexNotFound, str::stream() << "can't find index with key: " << f.embeddedObject().toString()); } |