From a71f37b951ca49c180b037ea8955851654b09afa Mon Sep 17 00:00:00 2001 From: Marcel Lasaj Date: Tue, 14 Jul 2020 14:46:43 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20error=20message=20for=20DebugCorePackage.?= =?UTF-8?q?getModule=20IllegalArgumentExc=E2=80=A6=20(#29304)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: …eption This is a minor change in `DebugCorePackage.getModule()` method that corrects the `IllegalArgumentException`'s error message, which was probably copy-pasted from `CoreModulePackage`. ## Changelog [Android] [Fixed] - Fixed error message in DebugCorePackage.getModule Pull Request resolved: https://github.com/facebook/react-native/pull/29304 Test Plan: No tests needed. Reviewed By: RSNara Differential Revision: D22521091 Pulled By: mdvacca fbshipit-source-id: 19205f9beb0fc26249985ce2c865e284c4a4add1 --- .../src/main/java/com/facebook/react/DebugCorePackage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java b/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java index fb72f43732cc52..740182fbc0f7f1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java @@ -37,7 +37,7 @@ public NativeModule getModule(String name, ReactApplicationContext reactContext) return new JSCHeapCapture(reactContext); default: throw new IllegalArgumentException( - "In CoreModulesPackage, could not find Native module for " + name); + "In DebugCorePackage, could not find Native module for " + name); } }