From e757c09b96e2a186dd1b2f6293ff6f2861fd7e82 Mon Sep 17 00:00:00 2001 From: Vitali Zaidman Date: Fri, 23 May 2025 11:51:42 -0700 Subject: [PATCH] fixed typo in UNREGISTERED_DEVICE error (#51561) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51561 Changelog: [Internal] fix typo in InspectorProxy Reviewed By: huntie Differential Revision: D75217049 fbshipit-source-id: 2473ddf4a120175305b195ed78704e734554b423 --- .../dev-middleware/src/inspector-proxy/InspectorProxy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dev-middleware/src/inspector-proxy/InspectorProxy.js b/packages/dev-middleware/src/inspector-proxy/InspectorProxy.js index 4a92406f4f9..d6db9ca355e 100644 --- a/packages/dev-middleware/src/inspector-proxy/InspectorProxy.js +++ b/packages/dev-middleware/src/inspector-proxy/InspectorProxy.js @@ -49,8 +49,8 @@ const INTERNAL_ERROR_CODE = 1011; // should be aligned with // https://github.com/facebook/react-native-devtools-frontend/blob/3d17e0fd462dc698db34586697cce2371b25e0d3/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts#L50-L64 const INTERNAL_ERROR_MESSAGES = { - UREGISTERED_DEVICE: - '[UREGISTERED_DEVICE] Debugger connection attempted for a device that was not registered', + UNREGISTERED_DEVICE: + '[UNREGISTERED_DEVICE] Debugger connection attempted for a device that was not registered', INCORRECT_URL: '[INCORRECT_URL] Incorrect URL - device and page IDs must be provided', }; @@ -520,7 +520,7 @@ export default class InspectorProxy implements InspectorProxyQueries { } if (device == null) { - throw new Error(INTERNAL_ERROR_MESSAGES.UREGISTERED_DEVICE); + throw new Error(INTERNAL_ERROR_MESSAGES.UNREGISTERED_DEVICE); } this.#logger?.info(