|
@@ -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];
|