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

Eliminate internal use of panic() wherever possible

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      There are a number of internal functions that panic when hitting an unexpected situation, e.g. message_query.AddMeta.

      Many of these are effectively "should never get here" sentinels, but nonetheless, these should be converted to return errors whenever possible. When not possible, we must ensure such panics are caught with deferred recover() calls.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: