0
0
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:
Eliot Horowitz 2010-05-15 07:52:23 -04:00
parent f91cd9eda7
commit acc5d31ed2

View File

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