summaryrefslogtreecommitdiff
path: root/src/mongo/db/keypattern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/keypattern.cpp')
-rw-r--r--src/mongo/db/keypattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/keypattern.cpp b/src/mongo/db/keypattern.cpp
index bba2f3424e0..8e91e561c01 100644
--- a/src/mongo/db/keypattern.cpp
+++ b/src/mongo/db/keypattern.cpp
@@ -79,7 +79,7 @@ BSONObj KeyPattern::extendRangeBound(const BSONObj& bound, bool makeUpperInclusi
BSONObjIterator pat(_pattern);
while (src.more()) {
- massert(16649,
+ massert(ErrorCodes::KeyPatternShorterThanBound,
str::stream() << "keyPattern " << _pattern << " shorter than bound " << bound,
pat.more());
BSONElement srcElt = src.next();