fix invalid jsbundle issue

This commit is contained in:
Geoffrey Goh
2016-02-04 13:29:30 -08:00
parent 40944c9bf7
commit 142859e0df
4 changed files with 15 additions and 2 deletions

View File

@@ -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);
}];
});