Skip to content

Commit 228a52f

Browse files
committed
sync error names
1 parent 62befab commit 228a52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3607,7 +3607,7 @@ export function attach(
36073607
mostRecentlyInspectedElement = inspectElementRaw(id);
36083608
} catch (error) {
36093609
// the error name is synced with ReactDebugHooks
3610-
if (error.name === 'RenderFunctionError') {
3610+
if (error.name === 'ReactDebugToolsRenderFunctionError') {
36113611
let message = 'Error rendering inspected element.';
36123612
let stack;
36133613
// Log error & cause for user to debug
@@ -3633,7 +3633,7 @@ export function attach(
36333633
}
36343634

36353635
// the error name is synced with ReactDebugHooks
3636-
if (error.name === 'UnsupportedFeatureError') {
3636+
if (error.name === 'ReactDebugToolsUnsupportedHookError') {
36373637
return {
36383638
type: 'unsupported-feature',
36393639
id,

0 commit comments

Comments
 (0)