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: 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
This commit is contained in:
Marcel Lasaj
2020-07-14 14:46:43 -07:00
committed by Facebook GitHub Bot
parent 9f3b6082da
commit a71f37b951
@@ -37,7 +37,7 @@ public class DebugCorePackage extends TurboReactPackage {
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);
}
}