mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Correct message annotation on early js errors (#47889)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47889 ## Context When is the runtime ready? - After the main bundle finishes executing **without** raising a fatal javascript error ## Changes Let's decorate all errors reported while the runtime is not ready as "[runtime not ready]". Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D66316907 fbshipit-source-id: e48542af4f84d4cc3a6ce8f667dbaa10c30c19a8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fd1d6b8c65
commit
e4d8c96786
@@ -327,7 +327,8 @@ void JsErrorHandler::handleErrorWithCppPipeline(
|
||||
auto id = nextExceptionId();
|
||||
|
||||
ParsedError parsedError = {
|
||||
.message = _isRuntimeReady ? message : ("EarlyJsError: " + message),
|
||||
.message =
|
||||
_isRuntimeReady ? message : ("[runtime not ready]: " + message),
|
||||
.originalMessage = originalMessage,
|
||||
.name = name,
|
||||
.componentStack = componentStack,
|
||||
|
||||
Reference in New Issue
Block a user