We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1deed21 commit 6cd53eaCopy full SHA for 6cd53ea
packages/storage/ios/RNFBStorage/RNFBStorageCommon.m
@@ -417,7 +417,11 @@ + (NSArray *)getErrorCodeMessage:(NSError *)error {
417
code = @"invalid-device-file-path";
418
message = @"The specified device file path is invalid or is restricted.";
419
} else {
420
- message = @"An unknown error has occurred.";
+ if (userInfo[@"ResponseBody"]) {
421
+ message = [NSString stringWithFormat:@"An unknown error has occurred. (underlying reason '%@')", userInfo[@"ResponseBody"]];
422
+ } else {
423
+ message = @"An unknown error has occurred.";
424
+ }
425
}
426
break;
427
case FIRStorageErrorCodeObjectNotFound:
0 commit comments