From be6f65660f9c5b56795079b00f6d7eecade5a22f Mon Sep 17 00:00:00 2001 From: Lulu Wu Date: Thu, 20 Oct 2022 03:22:25 -0700 Subject: [PATCH] Add "EarlyJsError: " as prefix of early js error's message Summary: Changelog: [General][Changed] - Add "EarlyJsError: " as prefix of early js error's message Reviewed By: RSNara Differential Revision: D40484148 fbshipit-source-id: 4c8f9b4a35c7547365bd70dff7627a08a0e6bc4b --- ReactCommon/jserrorhandler/JsErrorHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/jserrorhandler/JsErrorHandler.cpp b/ReactCommon/jserrorhandler/JsErrorHandler.cpp index ca512330027bdc..0902e68b2b1644 100644 --- a/ReactCommon/jserrorhandler/JsErrorHandler.cpp +++ b/ReactCommon/jserrorhandler/JsErrorHandler.cpp @@ -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);