Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1769

Avoid throwing exceptions from enableTelemetry()/disableTelemetry()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.6
    • Affects Version/s: 2.2.5
    • Component/s: CLI Module, Telemetry Data
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 1
    • Not Needed
    • Developer Tools

      See https://github.com/mongodb-js/mongosh/pull/1955#issuecomment-2082303889 – a user rightfully points out that MONGOSH-1762 was an unintended breaking change in some scenarios because the enable/disable functions previously did not throw exceptions. We should wrap this in a try/catch and instead only print the error, if any, as a string (just like the regular return value currently)

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: