Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-client/src/ReactFlightClientDevToolsHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function injectInternals(internals: Object): boolean {
} catch (err) {
// Catch all errors because it is unsafe to throw during initialization.
if (__DEV__) {
console.error('React instrumentation encountered an error: %s.', err);
console.error('React instrumentation encountered an error: %o.', err);
}
}
if (hook.checkDCE) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/__tests__/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function patchConsoleForTestingBeforeHookInstallation() {
// if they use this code path.
firstArg = firstArg.slice(9);
}
if (firstArg === 'React instrumentation encountered an error: %s') {
if (firstArg === 'React instrumentation encountered an error: %o') {
// Rethrow errors from React.
throw args[1];
} else if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2935,7 +2935,7 @@ export function attach(
}
if (suspenseNode.parent !== parentNode) {
throw new Error(
'Cannot remove a node from a different parent than is being reconciled.',
'Cannot remove a Suspense node from a different parent than is being reconciled.',
);
}
let previousSuspenseSibling = remainingReconcilingChildrenSuspenseNodes;
Expand Down
12 changes: 6 additions & 6 deletions packages/react-reconciler/src/ReactFiberDevToolsHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function injectInternals(internals: Object): boolean {
} catch (err) {
// Catch all errors because it is unsafe to throw during initialization.
if (__DEV__) {
console.error('React instrumentation encountered an error: %s.', err);
console.error('React instrumentation encountered an error: %o.', err);
}
}
if (hook.checkDCE) {
Expand All @@ -101,7 +101,7 @@ export function onScheduleRoot(root: FiberRoot, children: ReactNodeList) {
} catch (err) {
if (__DEV__ && !hasLoggedError) {
hasLoggedError = true;
console.error('React instrumentation encountered an error: %s', err);
console.error('React instrumentation encountered an error: %o', err);
}
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@ export function onCommitRoot(root: FiberRoot, eventPriority: EventPriority) {
if (__DEV__) {
if (!hasLoggedError) {
hasLoggedError = true;
console.error('React instrumentation encountered an error: %s', err);
console.error('React instrumentation encountered an error: %o', err);
}
}
}
Expand All @@ -162,7 +162,7 @@ export function onPostCommitRoot(root: FiberRoot) {
if (__DEV__) {
if (!hasLoggedError) {
hasLoggedError = true;
console.error('React instrumentation encountered an error: %s', err);
console.error('React instrumentation encountered an error: %o', err);
}
}
}
Expand All @@ -177,7 +177,7 @@ export function onCommitUnmount(fiber: Fiber) {
if (__DEV__) {
if (!hasLoggedError) {
hasLoggedError = true;
console.error('React instrumentation encountered an error: %s', err);
console.error('React instrumentation encountered an error: %o', err);
}
}
}
Expand All @@ -199,7 +199,7 @@ export function setIsStrictModeForDevtools(newIsStrictMode: boolean) {
if (__DEV__) {
if (!hasLoggedError) {
hasLoggedError = true;
console.error('React instrumentation encountered an error: %s', err);
console.error('React instrumentation encountered an error: %o', err);
}
}
}
Expand Down
Loading