Finish up the work to send through the error cookie

Summary: - Includes the error cookie with soft exceptions as well since they too can be updated (requires tiny Android change too)
- Passes the error cookie through instead of leaving it unused
Closes https://github.com/facebook/react-native/pull/2198

Reviewed By: @​svcscm

Differential Revision: D2455391

Pulled By: @sahrens
This commit is contained in:
James Ide
2015-09-17 18:12:46 -07:00
committed by facebook-github-bot-9
parent 1fd27dae5e
commit 4fd03ba21a
3 changed files with 27 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ function reportException(e: Exception, isFatal: bool, stack?: any) {
if (isFatal) {
RCTExceptionsManager.reportFatalException(e.message, stack, currentExceptionID);
} else {
RCTExceptionsManager.reportSoftException(e.message, stack);
RCTExceptionsManager.reportSoftException(e.message, stack, currentExceptionID);
}
if (__DEV__) {
(sourceMapPromise = sourceMapPromise || loadSourceMap())