0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

better error message

This commit is contained in:
Eliot Horowitz 2009-09-18 14:20:44 -04:00
parent 9780f3092b
commit 88795bc740

View File

@ -140,7 +140,7 @@ namespace mongo {
b.append( "n" , n );
BSONObj o = _grid->_client.findOne( _grid->_chunksNS.c_str() , b.obj() );
assert( ! o.isEmpty() );
uassert( "chunk is empty!" , ! o.isEmpty() );
return Chunk(o);
}