summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarly Robison <crobison@caltech.edu>2016-08-11 11:01:32 -0400
committerCarly Robison <crobison@caltech.edu>2016-08-11 11:01:32 -0400
commitd1d26b71ca0ac0b20f868dc8accd26769d5fd169 (patch)
treec2d30104ea8e367a62616ec830bc821c43056a4f
parent5a83f956577d1a571ff5acb410aeb06faf5ec92d (diff)
downloadmongo-d1d26b71ca0ac0b20f868dc8accd26769d5fd169.tar.gz
SERVER-5781 fix error codes for addFields
-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);