mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
fix invalid jsbundle issue
This commit is contained in:
@@ -391,6 +391,10 @@ RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary*)updatePackage
|
||||
}
|
||||
// The download failed
|
||||
failCallback:^(NSError *err) {
|
||||
if ([CodePushPackage isCodePushError:err]) {
|
||||
[self saveFailedUpdate:updatePackage];
|
||||
}
|
||||
|
||||
reject([NSString stringWithFormat: @"%lu", (long)err.code], err.localizedDescription, err);
|
||||
}];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user