Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11623

Error message typos in modifier_push.cpp

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.5
    • Affects Version/s: None
    • Component/s: Write Ops
    • Labels:
    • ALL

      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

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: