diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-01-24 21:05:46 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-01-24 21:05:46 -0500 |
commit | 5fa0d5e030c74fe617b5dcd2685b066bac6f0366 (patch) | |
tree | ee0b0be49ac598c044e91c716136955b5298c572 /db/extsort.cpp | |
parent | 05d80f56d8f5edbc77cc3f1a896c055739e7c92e (diff) | |
download | mongo-5fa0d5e030c74fe617b5dcd2685b066bac6f0366.tar.gz |
better debugging when can't open streams
Diffstat (limited to 'db/extsort.cpp')
-rw-r--r-- | db/extsort.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/extsort.cpp b/db/extsort.cpp index 08b343a1b50..beddc744068 100644 --- a/db/extsort.cpp +++ b/db/extsort.cpp @@ -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++ ){ |