summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/pipeline/document_source_add_fields.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_add_fields.cpp b/src/mongo/db/pipeline/document_source_add_fields.cpp
index 9e893e4cb7b..1ce28a00fa7 100644
--- a/src/mongo/db/pipeline/document_source_add_fields.cpp
+++ b/src/mongo/db/pipeline/document_source_add_fields.cpp
@@ -46,7 +46,7 @@ std::vector<intrusive_ptr<DocumentSource>> DocumentSourceAddFields::createFromBs
BSONElement elem, const intrusive_ptr<ExpressionContext>& expCtx) {
// Confirm that the stage was called with an object.
- uassert(40269,
+ uassert(40272,
str::stream() << "$addFields specification stage must be an object, got "
<< typeName(elem.type()),
elem.type() == Object);