[SERVER-11623] Error message typos in modifier_push.cpp Created: 07/Nov/13  Updated: 11/Jul/16  Resolved: 04/Dec/13

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Bug Priority: Minor - P4
Reporter: Kamran K. Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-11366 improve new update() error strings Closed
Operating System: ALL
Participants:

 Description   

There are 3 error message typos in src/mongo/db/ops/modifier_push.cpp on master:

320    str::stream() << "The value for $slice must "
321                   "a be a numeric value not "
322                << typeName(sliceElem.type()));
323    }

"must a be" is ungrammatical

345    if (!positionElem.isNumber()) {
346        return Status(ErrorCodes::BadValue,
347                      str::stream() << "The value for $position must "
348                                       "a be a positive numeric value not "
349                                    << typeName(positionElem.type()));
350    }

"must a be" is ungrammatical

489    return Status(ErrorCodes::BadValue,
490                  str::stream() << "The field '" << _fieldRef.dottedField() << "'"
491                                << " must be and array but is of type "
492                                << typeName(_preparedState->elemFound.getType())
493                                << " in document " << idElem.toString() );

"must be and array" should probably be "must be an array"


Version:
$ git rev-parse HEAD
2307d854227d1929e8a1c5a89fac0e22688325e1



 Comments   
Comment by Githook User [ 04/Dec/13 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-11188, SERVER-11366, SERVER-11384, SERVER-11623: Update message cleanup
Branch: master
https://github.com/mongodb/mongo/commit/a523a77c9601d3d8c1bd6175ead83702b95409b9

Generated at Thu Feb 08 03:26:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.