Skip to content

Commit 80e42f5

Browse files
committed
bump version to 10.29.7 and add error handling for hdiffFileAtPath in RCTPushy
1 parent 9b718b8 commit 80e42f5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ios/RCTPushy/RCTPushy.mm

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,15 @@ - (void)_dopatch:(NSString *)hash fromBundle:(NSString *)bundleOrigin source:(NS
542542
callback([self errorWithMessage:ERROR_HDIFFPATCH]);
543543
}
544544
};
545-
[_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler];
545+
546+
@try {
547+
[_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler];
548+
}
549+
@catch (NSException *exception) {
550+
NSLog(@"Pushy _dopatch error: exception occurred during hdiffFileAtPath: %@, reason: %@",
551+
exception.name, exception.reason);
552+
callback([self errorWithMessage:ERROR_HDIFFPATCH]);
553+
}
546554
}
547555

548556
- (void)patch:(NSString *)hash fromBundle:(NSString *)bundleOrigin source:(NSString *)sourceOrigin callback:(void (^)(NSError *error))callback

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.29.6",
3+
"version": "10.29.7",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

0 commit comments

Comments
 (0)