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

Typo in src/mongo/shell/collection.js

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.2.5, 3.3.4
    • Affects Version/s: None
    • Component/s: Shell
    • Fully Compatible
    • ALL
    • Hide

      db.users.getIndexes()

      2016-03-14T19:55:37.200+0700 E QUERY [thread1] ReferenceError: ret is not defined

      Show
      db.users.getIndexes() 2016-03-14T19:55:37.200+0700 E QUERY [thread1] ReferenceError: ret is not defined
    • Platforms 12 (04/01/16)

      https://github.com/mongodb/mongo/blob/master/src/mongo/shell/collection.js#L1032

      throw _getErrorWithCode(ret, "listIndexes failed: " + tojson(res));

      should be

      throw _getErrorWithCode(res, "listIndexes failed: " + tojson(res));

            Assignee:
            waley.chen Waley Chen
            Reporter:
            ArtemKo Artem Ko [X]
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: