Make MONGO_INITIALIZER functions throw on error

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Service arch 2020-09-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      These functions rarely return anything but Status::OK(), and many are even no-ops, which makes the requirement to return Status::OK() just unnecessary noise.

      Moreover, returning anything but Status::OK is essentially fatal, so it might as well throw.
      All initializers can be converted very easily.

              Assignee:
              Billy Donahue
              Reporter:
              Billy Donahue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: