diff options
author | Carly Robison <crobison@caltech.edu> | 2016-08-11 11:01:32 -0400 |
---|---|---|
committer | Carly Robison <crobison@caltech.edu> | 2016-08-11 11:01:32 -0400 |
commit | d1d26b71ca0ac0b20f868dc8accd26769d5fd169 (patch) | |
tree | c2d30104ea8e367a62616ec830bc821c43056a4f | |
parent | 5a83f956577d1a571ff5acb410aeb06faf5ec92d (diff) | |
download | mongo-d1d26b71ca0ac0b20f868dc8accd26769d5fd169.tar.gz |
SERVER-5781 fix error codes for addFields
-rw-r--r-- | src/mongo/db/pipeline/document_source_add_fields.cpp | 2 |
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); |