mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
some better asserts
This commit is contained in:
parent
f91cd9eda7
commit
acc5d31ed2
@ -197,9 +197,11 @@ namespace mongo {
|
||||
case BSONObj::opALL:
|
||||
all = true;
|
||||
case BSONObj::opIN:
|
||||
uassert( 13276 , "$in needs an array" , fe.isABSONObj() );
|
||||
basics.push_back( ElementMatcher( e , op , fe.embeddedObject(), isNot ) );
|
||||
break;
|
||||
case BSONObj::NIN:
|
||||
uassert( 13277 , "$nin needs an array" , fe.isABSONObj() );
|
||||
haveNeg = true;
|
||||
basics.push_back( ElementMatcher( e , op , fe.embeddedObject(), isNot ) );
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user