[SERVER-2716] Better error message when using admin command on non-admin db Created: 09/Mar/11  Updated: 20/May/16  Resolved: 20/May/16

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

rs:PRIMARY> db.$cmd.sys.unlock.findOne()

{ "err" : "unauthorized" }

Should say something like "This is an command that must be run against the admin db".



 Comments   
Comment by Jacob Frantz [ 02/Jul/12 ]

tested on 2.0.6 - looks like it's already been done

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