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

Eliminate internal use of panic() wherever possible

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 0.0.1
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: