Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 0c407f0

Browse files
committed
Fix IOS fs error handling when CameraRoll is not installed
1 parent 92adfe9 commit 0c407f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ios/RNFetchBlobFS.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ + (void) readFile:(NSString *)path encoding:(NSString *)encoding
371371
{
372372
BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:path];
373373
if(!exists) {
374-
reject(@"RNFetchBlobFS readFile error", @"file not exists", nil);
374+
reject(@"RNFetchBlobFS readFile error", @"file not exists", [[NSError alloc]init]);
375375
return;
376376
}
377377
fileContent = [NSData dataWithContentsOfFile:path];

0 commit comments

Comments
 (0)