diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-06-11 14:46:33 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-06-11 14:46:33 -0400 |
commit | d36aae49b1edf89a39327c7a2dc8489d50a67c64 (patch) | |
tree | 198b1a72106da7772488b27013540e869318d8c6 | |
parent | d4cc11852bad2e42fa98a0aaef845934fffe0b35 (diff) | |
download | mongo-d36aae49b1edf89a39327c7a2dc8489d50a67c64.tar.gz |
better boost assert
-rw-r--r-- | util/assert_util.h | 5 |
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 ); \ } |