summaryrefslogtreecommitdiff
path: root/tools
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 /tools
parent05d80f56d8f5edbc77cc3f1a896c055739e7c92e (diff)
downloadmongo-5fa0d5e030c74fe617b5dcd2685b066bac6f0366.tar.gz
better debugging when can't open streams
Diffstat (limited to 'tools')
-rw-r--r--tools/dump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dump.cpp b/tools/dump.cpp
index 4cbd2e12f3f..a310e19782e 100644
--- a/tools/dump.cpp
+++ b/tools/dump.cpp
@@ -39,7 +39,7 @@ public:
ofstream out;
out.open( outputFile.string().c_str() , ios_base::out | ios_base::binary );
- uassert( 10262 , "couldn't open file" , out.good() );
+ ASSERT_STREAM_GOOD( 10262 , "couldn't open file" , out );
ProgressMeter m( conn( true ).count( coll.c_str() , BSONObj() , QueryOption_SlaveOk ) );