Browse Source

Fix IOS fs error handling when CameraRoll is not installed

Ben Hsieh 7 years ago
parent
commit
0c407f0cde
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/ios/RNFetchBlobFS.m

+ 1
- 1
src/ios/RNFetchBlobFS.m View File

@@ -371,7 +371,7 @@ NSMutableDictionary *fileStreams = nil;
371 371
             {
372 372
                 BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:path];
373 373
                 if(!exists) {
374
-                    reject(@"RNFetchBlobFS readFile error", @"file not exists", nil);
374
+                    reject(@"RNFetchBlobFS readFile error", @"file not exists", [[NSError alloc]init]);
375 375
                     return;
376 376
                 }
377 377
                 fileContent = [NSData dataWithContentsOfFile:path];