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:
parent
9780f3092b
commit
88795bc740
@ -140,7 +140,7 @@ namespace mongo {
|
|||||||
b.append( "n" , n );
|
b.append( "n" , n );
|
||||||
|
|
||||||
BSONObj o = _grid->_client.findOne( _grid->_chunksNS.c_str() , b.obj() );
|
BSONObj o = _grid->_client.findOne( _grid->_chunksNS.c_str() , b.obj() );
|
||||||
assert( ! o.isEmpty() );
|
uassert( "chunk is empty!" , ! o.isEmpty() );
|
||||||
return Chunk(o);
|
return Chunk(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user