summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-06-11 14:46:33 -0400
committerEliot Horowitz <eliot@10gen.com>2010-06-11 14:46:33 -0400
commitd36aae49b1edf89a39327c7a2dc8489d50a67c64 (patch)
tree198b1a72106da7772488b27013540e869318d8c6
parentd4cc11852bad2e42fa98a0aaef845934fffe0b35 (diff)
downloadmongo-d36aae49b1edf89a39327c7a2dc8489d50a67c64.tar.gz
better boost assert
-rw-r--r--util/assert_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/assert_util.h b/util/assert_util.h
index 12c9c8dbae3..458e3b1c329 100644
--- a/util/assert_util.h
+++ b/util/assert_util.h
@@ -214,8 +214,9 @@ namespace mongo {
try { \
expression; \
} catch ( const std::exception &e ) { \
- problem() << "caught boost exception: " << e.what() << endl; \
- assert( false ); \
+ stringstream ss; \
+ ss << "caught boost exception: " << e.what(); \
+ msgasserted( 13294 , ss.str() ); \
} catch ( ... ) { \
massert( 10437 , "unknown boost failed" , false ); \
}