Skip to content

RN: Remove Special Case for "Warning: " Errors#55193

Closed
yungsters wants to merge 1 commit intofacebook:mainfrom
yungsters:export-D90795590
Closed

RN: Remove Special Case for "Warning: " Errors#55193
yungsters wants to merge 1 commit intofacebook:mainfrom
yungsters:export-D90795590

Conversation

@yungsters
Copy link
Copy Markdown
Contributor

Summary:
React no longer emits the "Warning: " prefix from error messages, so we no longer need special handling for error messages with this prefix.

If third party call sites are depending on console.error('Warning: …') being treated as a warning, they should be migrated to use console.warn('…').

Changelog:
[General][Changed] - Logs created by console.error that begin with "Warning: " will no longer be treated as warnings. These call sites should migrate to using console.warn instead.

Differential Revision: D90795590

Summary:
React no longer emits the "Warning: " prefix from error messages, so we no longer need special handling for error messages with this prefix.

If third party call sites are depending on `console.error('Warning: …')` being treated as a warning, they should be migrated to use `console.warn('…')`.

Changelog:
[General][Changed] - Logs created by `console.error` that begin with "Warning: " will no longer be treated as warnings. These call sites should migrate to using `console.warn` instead.

Differential Revision: D90795590
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 15, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Jan 15, 2026

@yungsters has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90795590.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @yungsters in 5ab4184

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

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jan 15, 2026
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants