From d1d26b71ca0ac0b20f868dc8accd26769d5fd169 Mon Sep 17 00:00:00 2001 From: Carly Robison Date: Thu, 11 Aug 2016 11:01:32 -0400 Subject: SERVER-5781 fix error codes for addFields --- src/mongo/db/pipeline/document_source_add_fields.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> DocumentSourceAddFields::createFromBs BSONElement elem, const intrusive_ptr& 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); -- cgit v1.2.1