Use AggregateError to throw all errors encountered when loading prebuilt native binaries

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a driver + native extension user,
      I want good errors thrown if a native extension fails to load the prebuilt binary,
      So that I can debug.

      Our native packages try to load a release build first, then try to load a debug.  If we fail to load both, the error thrown is the error encountered when loading the debug build.  This makes debugging challenging - the actual error encountered is swallowed.

      We should consider collecting all errors encountered and throwing them in an aggregate error.

      User Experience

      • What is the desired/expected outcome for the user once this ticket is implemented?
      • If bug: What is the number of impacted customers? How severe is the impact? Is anyone blocked or broken?

      Dependencies

      • upstream and/or downstream requirements and timelines to bear in mind

      Risks/Unknowns

      • What could go wrong while implementing this change? (e.g., performance, inadvertent behavioral changes in adjacent functionality, existing tech debt, etc)
      • Is there an opportunity for better cross-driver alignment or testing in this area?
      • Is there an opportunity to improve existing documentation on this subject?

      Acceptance Criteria

      Implementation Requirements

      • functional reqs, potential snafus to avoid, performance targets, etc

      Testing Requirements

      • unit test, spec test sync, etc

      Documentation Requirements

      • DOCSP ticket, API docs, etc

      Follow Up Requirements

      • additional tickets to file, required releases, etc
      • if node behavior differs/will differ from other drivers, confirm with dbx devs what standard to aim for and what plan, if any, exists to reconcile the diverging behavior moving forward

            Assignee:
            Unassigned
            Reporter:
            Bailey Pearson
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: