summaryrefslogtreecommitdiff
path: root/src/mongo/bson/json.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/json.cpp')
-rw-r--r--src/mongo/bson/json.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/json.cpp b/src/mongo/bson/json.cpp
index 647accf31ba..5e132e1e5b3 100644
--- a/src/mongo/bson/json.cpp
+++ b/src/mongo/bson/json.cpp
@@ -1302,13 +1302,13 @@ BSONObj fromjson(const char* jsonString, int* len) {
} catch (std::exception& e) {
std::ostringstream message;
message << "caught exception from within JSON parser: " << e.what();
- throw MsgAssertionException(17031, message.str());
+ throw AssertionException(17031, message.str());
}
if (ret != Status::OK()) {
ostringstream message;
message << "code " << ret.code() << ": " << ret.codeString() << ": " << ret.reason();
- throw MsgAssertionException(16619, message.str());
+ throw AssertionException(16619, message.str());
}
if (len)
*len = jparse.offset();