Better error message when using admin command on non-admin db

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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".

            Assignee:
            Mathias Stearn
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: