diff --git a/ios/RCTPushy/RCTPushy.mm b/ios/RCTPushy/RCTPushy.mm index 509da40..5036c7c 100644 --- a/ios/RCTPushy/RCTPushy.mm +++ b/ios/RCTPushy/RCTPushy.mm @@ -542,7 +542,15 @@ RCT_EXPORT_METHOD(markSuccess:(RCTPromiseResolveBlock)resolve callback([self errorWithMessage:ERROR_HDIFFPATCH]); } }; - [_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler]; + + @try { + [_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler]; + } + @catch (NSException *exception) { + NSLog(@"Pushy _dopatch error: exception occurred during hdiffFileAtPath: %@, reason: %@", + exception.name, exception.reason); + callback([self errorWithMessage:ERROR_HDIFFPATCH]); + } } - (void)patch:(NSString *)hash fromBundle:(NSString *)bundleOrigin source:(NSString *)sourceOrigin callback:(void (^)(NSError *error))callback diff --git a/package.json b/package.json index e13afc0..1c919ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "10.29.6", + "version": "10.29.7", "description": "react-native hot update", "main": "src/index", "scripts": {