Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-908

options.MergeClientOptions doesn't handle errors properly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.1
    • Affects Version/s: 1.0.0
    • None

      When merging a set of options.ClientOptions we do not ensure that we copy the error from a given options.ClientOptions which means that errors from ApplyURI are suppressed.

      To fix this, check if the err field of an options.ClientOptions instance is non-nil and if so, immediately return the options.ClientOptions with the error before merging.

            Assignee:
            go-community-user Go Community User
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: