summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/util/text.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/util/text.cpp b/src/mongo/util/text.cpp
index ca0e89dcef4..9fb8f93cc25 100644
--- a/src/mongo/util/text.cpp
+++ b/src/mongo/util/text.cpp
@@ -93,8 +93,7 @@ namespace mongo {
}
}
- throw boost::system::system_error(
- ::GetLastError(), boost::system::system_category);
+ msgasserted( 16062 , str::stream() << "can't wstring to utf8: " << ::GetLastError() );
}
#if defined(_UNICODE)