better debugging when can't open streams
This commit is contained in:
@@ -113,7 +113,7 @@ namespace mongo {
|
||||
|
||||
ofstream out;
|
||||
out.open( file.c_str() , ios_base::out | ios_base::binary );
|
||||
uassert( 10051 , (string)"couldn't open file: " + file , out.good() );
|
||||
ASSERT_STREAM_GOOD( 10051 , (string)"couldn't open file: " + file , out );
|
||||
|
||||
int num = 0;
|
||||
for ( InMemory::iterator i=_cur->begin(); i != _cur->end(); i++ ){
|
||||
|
||||
Reference in New Issue
Block a user