Skip to content

Commit

Permalink
Fix error message for DebugCorePackage.getModule IllegalArgumentExc… (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Marcel Lasaj authored and facebook-github-bot committed Jul 14, 2020
1 parent 9f3b608 commit a71f37b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit a71f37b

Please sign in to comment.