summaryrefslogtreecommitdiff
path: root/db/extsort.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-01-24 21:05:46 -0500
committerEliot Horowitz <eliot@10gen.com>2010-01-24 21:05:46 -0500
commit5fa0d5e030c74fe617b5dcd2685b066bac6f0366 (patch)
treeee0b0be49ac598c044e91c716136955b5298c572 /db/extsort.cpp
parent05d80f56d8f5edbc77cc3f1a896c055739e7c92e (diff)
downloadmongo-5fa0d5e030c74fe617b5dcd2685b066bac6f0366.tar.gz
better debugging when can't open streams
Diffstat (limited to 'db/extsort.cpp')
-rw-r--r--db/extsort.cpp2
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++ ){