Skip to content

Commit

Permalink
Add "EarlyJsError: " as prefix of early js error's message
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[General][Changed] - Add "EarlyJsError: " as prefix of early js error's message

Reviewed By: RSNara

Differential Revision: D40484148

fbshipit-source-id: 4c8f9b4a35c7547365bd70dff7627a08a0e6bc4b
  • Loading branch information
Lulu Wu authored and facebook-github-bot committed Oct 20, 2022
1 parent e4b5d3e commit be6f656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/jserrorhandler/JsErrorHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ parseErrorStack(const jsi::JSError &error, bool isFatal, bool isHermes) {
}
}
errorObj.putMapBufferList(kAllStackFrames, std::move(frames));
errorObj.putString(kErrorMessage, error.getMessage());
errorObj.putString(kErrorMessage, "EarlyJsError: " + error.getMessage());
// TODO: If needed, can increment exceptionId by 1 each time
errorObj.putInt(kExceptionId, 0);
errorObj.putBool(kIsFatal, isFatal);
Expand Down

0 comments on commit be6f656

Please sign in to comment.