Re-align assertion messages between the shell and the server assert helpers

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2026-08-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-134104 updated the assertion logging in src/mongo/shell/assert.js to ensure that assert.soon, assert.soonNoExcept, assert.retry, assert.retryNoExcept, and assert.time format the error message to include the attribute values prior to logging the attribute.

      This ticket did not update the src/mongo/scripting/mozjs/server/assert.js in the same way. This has caused a divergence between the behaviors of these two files which was not caught by the tests in server_assertions.js because the test cases do not include attributes in their log messages.

      This ticket is to re-unify the behaviors of these two files and to fix the test so that it would catch such a divergence in the future.

            Assignee:
            Allison Easton
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: