From faa670cbffcdfb6a8ac733ac17ce62bb9786aec6 Mon Sep 17 00:00:00 2001 From: Lili Shi Date: Thu, 10 Aug 2023 13:05:09 -0700 Subject: [PATCH] Fix runtime crasher on Xcode 15 --- ios/ReactNativeBlobUtilFS.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/ReactNativeBlobUtilFS.mm b/ios/ReactNativeBlobUtilFS.mm index 3005f5c7..8aed6669 100644 --- a/ios/ReactNativeBlobUtilFS.mm +++ b/ios/ReactNativeBlobUtilFS.mm @@ -210,9 +210,9 @@ + (void) readStream:(NSString *)uri free(buffer); } - @catch (NSError * err) + @catch (NSException * ex) { - NSDictionary * payload = @{ @"streamId":streamId, @"event": FS_EVENT_ERROR, @"code": @"EUNSPECIFIED", @"detail": [err description] }; + NSDictionary * payload = @{ @"streamId":streamId, @"event": FS_EVENT_ERROR, @"code": @"EUNSPECIFIED", @"detail": [ex description] }; [baseModule emitEventDict:EVENT_FILESYSTEM body:payload]; } @finally