better debugging when can't open streams

This commit is contained in:
Eliot Horowitz
2010-01-24 21:05:46 -05:00
parent 05d80f56d8
commit 5fa0d5e030
4 changed files with 15 additions and 2 deletions

View File

@@ -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++ ){