diff --git a/client/gridfs.cpp b/client/gridfs.cpp index 5c444296e36..a6fa30729ca 100644 --- a/client/gridfs.cpp +++ b/client/gridfs.cpp @@ -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); }