Skip to content

Commit a71f37b

Browse files
Marcel Lasajfacebook-github-bot
Marcel Lasaj
authored andcommitted
Fix error message for DebugCorePackage.getModule IllegalArgumentExc… (#29304)
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 <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Android] [Fixed] - Fixed error message in DebugCorePackage.getModule Pull Request resolved: #29304 Test Plan: No tests needed. Reviewed By: RSNara Differential Revision: D22521091 Pulled By: mdvacca fbshipit-source-id: 19205f9beb0fc26249985ce2c865e284c4a4add1
1 parent 9f3b608 commit a71f37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public NativeModule getModule(String name, ReactApplicationContext reactContext)
3737
return new JSCHeapCapture(reactContext);
3838
default:
3939
throw new IllegalArgumentException(
40-
"In CoreModulesPackage, could not find Native module for " + name);
40+
"In DebugCorePackage, could not find Native module for " + name);
4141
}
4242
}
4343

0 commit comments

Comments
 (0)