Preparing search index...

    Function reportCrash

    • Composes and sends an automatic crash report email for an error caught by an error boundary, attaching the recent log files and device info.

      Does not throw: failures are reported through the returned CrashReportOutcome so the recovery UI can surface them to the user.

      Parameters

      • error: Error

        The error caught by the boundary

      • componentStack: string | null

        React component stack from componentDidCatch, if available

      Returns Promise<CrashReportOutcome>

      Promise resolving to the report outcome