Typo in src/mongo/shell/collection.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
            Reporter:
            Artem Ko [X]
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: