Skip to content

Make soft exceptions easier to spot in logcat#44958

Closed
RSNara wants to merge 1 commit into
facebook:mainfrom
RSNara:export-D58593609
Closed

Make soft exceptions easier to spot in logcat#44958
RSNara wants to merge 1 commit into
facebook:mainfrom
RSNara:export-D58593609

Conversation

@RSNara
Copy link
Copy Markdown
Contributor

@RSNara RSNara commented Jun 14, 2024

Summary:
Now, all soft exception methods will have raiseSoftException(...)

Before

BridgelessReact: ReactHost{0}.getOrCreateDestroyTask(): handleHostException(message = "Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'RNTesterBundle.js' is packaged correctly for release.")

After

BridgelessReact: ReactHost{0}.raiseSoftException(getOrCreateDestroyTask()): handleHostException(message = "Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'RNTesterBundle.js' is packaged correctly for release.")

Changelog: [Internal]

Differential Revision: D58593609

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jun 14, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D58593609

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jun 14, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 20,365,551 -4
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 23,569,613 -1
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 2b640be
Branch: main

Summary:
Pull Request resolved: facebook#44958

Now, all soft exception methods will have raiseSoftException(...)

## Before

```
BridgelessReact: ReactHost{0}.getOrCreateDestroyTask(): handleHostException(message = "Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'RNTesterBundle.js' is packaged correctly for release.")
```

## After
```
BridgelessReact: ReactHost{0}.raiseSoftException(getOrCreateDestroyTask()): handleHostException(message = "Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'RNTesterBundle.js' is packaged correctly for release.")
```

Changelog: [Internal]

Reviewed By: alanleedev

Differential Revision: D58593609
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D58593609

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in ce2e426.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 14, 2024
@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @RSNara in ce2e426.

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants