Change modules error message when MONGO_MOD_PRIVATE is used at top level

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • Programmability 2026-03-02, Programmability 2023-03-30
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The current error message when this is attempted is the following:

      Only PUBLIC, PARENT_PRIVATE, and FILE_PRIVATE are allowed for file-level visibility, not private
      

      However, this is confusing. Users might not know that MONGO_MOD_PRIVATE is the default and cannot be explicitly specified at private. Change the message to something like this:

      Only PUBLIC, PARENT_PRIVATE, and FILE_PRIVATE are allowed for file-level visibility, not PRIVATE as is it the default and do not need to be specified.
      

            Assignee:
            Alex Li
            Reporter:
            Guillaume Racicot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: