File tree Expand file tree Collapse file tree
react-devtools-shared/src/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ env.beforeEach(() => {
3535// $FlowFixMe
3636console . error = ( ...args ) => {
3737const firstArg = args [ 0 ] ;
38- if ( firstArg === 'Warning: React DevTools encountered an error: %s' ) {
38+ if (
39+ firstArg === 'Warning: React instrumentation encountered an error: %s'
40+ ) {
3941// Rethrow errors from React.
4042throw args [ 1 ] ;
4143} else if (
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export function injectInternals(internals: Object): boolean {
6767hasLoggedError = true ;
6868warningWithoutStack (
6969false ,
70- 'React DevTools encountered an error: %s' ,
70+ 'React instrumentation encountered an error: %s' ,
7171err ,
7272) ;
7373}
@@ -93,7 +93,7 @@ export function injectInternals(internals: Object): boolean {
9393hasLoggedError = true ;
9494warningWithoutStack (
9595false ,
96- 'React DevTools encountered an error: %s' ,
96+ 'React instrumentation encountered an error: %s' ,
9797err ,
9898) ;
9999}
@@ -107,7 +107,7 @@ export function injectInternals(internals: Object): boolean {
107107hasLoggedError = true ;
108108warningWithoutStack (
109109false ,
110- 'React DevTools encountered an error: %s' ,
110+ 'React instrumentation encountered an error: %s' ,
111111err ,
112112) ;
113113}
@@ -118,7 +118,7 @@ export function injectInternals(internals: Object): boolean {
118118if ( __DEV__ ) {
119119warningWithoutStack (
120120false ,
121- 'React DevTools encountered an error: %s.' ,
121+ 'React instrumentation encountered an error: %s.' ,
122122err ,
123123) ;
124124}
You can’t perform that action at this time.
0 commit comments