[SERVER-23109] Typo in src/mongo/shell/collection.js Created: 14/Mar/16  Updated: 18/Nov/16  Resolved: 22/Mar/16

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 3.2.5, 3.3.4

Type: Bug Priority: Trivial - P5
Reporter: Artem Ko [X] Assignee: Waley Chen
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Steps To Reproduce:

db.users.getIndexes()

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

Sprint: Platforms 12 (04/01/16)
Participants:

 Description   

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));



 Comments   
Comment by Githook User [ 22/Mar/16 ]

Author:

{u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}

Message: SERVER-23109 Typo in src/mongo/shell/collection.js

(cherry picked from commit 7b6b491620fb9c5622ddff2a8271a84a0a736810)
Branch: v3.2
https://github.com/mongodb/mongo/commit/cf15cdbc8573f189e9344f6787f63b21c586f9c1

Comment by Githook User [ 22/Mar/16 ]

Author:

{u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}

Message: SERVER-23109 Typo in src/mongo/shell/collection.js
Branch: master
https://github.com/mongodb/mongo/commit/7b6b491620fb9c5622ddff2a8271a84a0a736810

Generated at Thu Feb 08 04:02:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.