Skip to content

Commit 2531333

Browse files
authored
Merge pull request #288 from lilidotshi/master
Fix runtime crasher on Xcode 15
2 parents d682742 + faa670c commit 2531333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/ReactNativeBlobUtilFS.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ + (void) readStream:(NSString *)uri
210210
free(buffer);
211211

212212
}
213-
@catch (NSError * err)
213+
@catch (NSException * ex)
214214
{
215-
NSDictionary * payload = @{ @"streamId":streamId, @"event": FS_EVENT_ERROR, @"code": @"EUNSPECIFIED", @"detail": [err description] };
215+
NSDictionary * payload = @{ @"streamId":streamId, @"event": FS_EVENT_ERROR, @"code": @"EUNSPECIFIED", @"detail": [ex description] };
216216
[baseModule emitEventDict:EVENT_FILESYSTEM body:payload];
217217
}
218218
@finally

0 commit comments

Comments
 (0)