options.MergeClientOptions doesn't handle errors properly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.0.1
    • Affects Version/s: 1.0.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: