better assertion message MINOR

This commit is contained in:
Eliot Horowitz
2009-07-01 11:26:12 -04:00
parent e6df15134f
commit 45f9970259

View File

@@ -517,7 +517,10 @@ namespace mongo {
if ( ifree )
_holder.reset( new Holder( data ) );
_objdata = data;
massert( "Invalid BSONObj spec size" , isValid() );
if ( ! isValid() ){
log() << "invalid object size: " << objsize() << endl;
massert( "Invalid BSONObj spec size" , 0 );
}
}
#pragma pack(1)
static struct EmptyObject {