summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-03-31 11:32:47 -0400
committergregs <greg@10gen.com>2011-04-01 09:45:10 -0400
commit301376410c7b8c9a922435e6d5a97645f3ee95db (patch)
tree0778fb136924d37e317539daa392bd97ccdaee7f /scripting
parent8750ddd3bdf6125271ee1289d2d2c79b97b987e7 (diff)
downloadmongo-301376410c7b8c9a922435e6d5a97645f3ee95db.tar.gz
conversion of unneeded caused_by macros to methods
Diffstat (limited to 'scripting')
-rw-r--r--scripting/sm_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/sm_db.cpp b/scripting/sm_db.cpp
index 9aa12cf329b..b7490dfd059 100644
--- a/scripting/sm_db.cpp
+++ b/scripting/sm_db.cpp
@@ -198,7 +198,7 @@ namespace mongo {
catch( std::exception& e ){
// Can happen if connection goes down while we're starting up here
// Catch so that we don't get a hard-to-trace segfault from SM
- JS_ReportError( cx, ( (string)"Error during mongo startup." + m_error_message( e.what() ) ).c_str() );
+ JS_ReportError( cx, ((string)( str::stream() << "Error during mongo startup." << causedBy( e ) )).c_str() );
return JS_FALSE;
}