summaryrefslogtreecommitdiff
path: root/src/mongo/db/update
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2018-01-16 14:54:44 -0500
committerMatthew Russotto <matthew.russotto@10gen.com>2018-01-16 16:34:36 -0500
commitef81d53b986aa701c722820a204eba73a635f748 (patch)
tree791caf39d5285edd3f00a5835de63d6fcae05e8e /src/mongo/db/update
parent25f0c6ae6c4fa80244cadb8a6bfcbf9bcc8b7742 (diff)
downloadmongo-ef81d53b986aa701c722820a204eba73a635f748.tar.gz
SERVER-32726 Fix out-of-order error code in update_driver.cpp
Diffstat (limited to 'src/mongo/db/update')
-rw-r--r--src/mongo/db/update/update_driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/update/update_driver.cpp b/src/mongo/db/update/update_driver.cpp
index ee480f5e5d1..2c1f9c25036 100644
--- a/src/mongo/db/update/update_driver.cpp
+++ b/src/mongo/db/update/update_driver.cpp
@@ -69,7 +69,7 @@ StatusWith<UpdateSemantics> updateSemanticsFromElement(BSONElement element) {
// As of 3.7, we only support one version of the update language.
if (updateSemantics != static_cast<int>(UpdateSemantics::kUpdateNode)) {
- return {ErrorCodes::Error(50659),
+ return {ErrorCodes::Error(40682),
str::stream() << "Unrecognized value for '$v' (UpdateSemantics) field: "
<< updateSemantics};
}