From fce0698def77666d139672aa2324fc1734c42926 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 19 Oct 2023 11:16:40 -0700 Subject: [PATCH] Fix logging of error in MainReactPackage.getReactModuleInfoProvider() (#41088) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41088 This was probably caused by a copy paste, I'm fixing the log message to describe the proper class. bypass-github-export-checks changelog: [internal] internal Reviewed By: RSNara Differential Revision: D50338296 fbshipit-source-id: 28657009ae7f9467d29eecd9b68c1f9541696350 --- .../java/com/facebook/react/shell/MainReactPackage.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java index 729694dd9b5996..dac68508acaa0f 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java @@ -303,10 +303,12 @@ public ReactModuleInfoProvider getReactModuleInfoProvider() { return () -> reactModuleInfoMap; } catch (InstantiationException e) { throw new RuntimeException( - "No ReactModuleInfoProvider for CoreModulesPackage$$ReactModuleInfoProvider", e); + "No ReactModuleInfoProvider for com.facebook.react.shell.MainReactPackage$$ReactModuleInfoProvider", + e); } catch (IllegalAccessException e) { throw new RuntimeException( - "No ReactModuleInfoProvider for CoreModulesPackage$$ReactModuleInfoProvider", e); + "No ReactModuleInfoProvider for com.facebook.react.shell.MainReactPackage$$ReactModuleInfoProvider", + e); } } }