summaryrefslogtreecommitdiff
path: root/db/query.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/query.cpp')
-rw-r--r--db/query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/query.cpp b/db/query.cpp
index d35cab071ef..c39f38b1392 100644
--- a/db/query.cpp
+++ b/db/query.cpp
@@ -362,7 +362,7 @@ int _updateObjects(const char *ns, JSObj updateobj, JSObj pattern, bool upsert,
set<string>& idxKeys = ndt.indexKeys();
for( vector<Mod>::iterator i = mods.begin(); i != mods.end(); i++ ) {
if( idxKeys.count(i->fieldName) ) {
- assert(false);
+ uassert("can't $inc/$set an indexed field", false);
}
}