mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-20 11:58:43 +08:00
Log when load bundle fails. (#1536)
This commit is contained in:
@@ -161,6 +161,7 @@ public class CodePushNativeModule extends ReactContextBaseJavaModule {
|
||||
} catch (Exception e) {
|
||||
// Our reflection logic failed somewhere
|
||||
// so fall back to restarting the Activity (if it exists)
|
||||
CodePushUtils.log("Failed to load the bundle, falling back to restarting the Activity (if it exists). " + e.getMessage());
|
||||
loadBundleLegacy();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user