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 89d9b7a commit a46bf81Copy full SHA for a46bf81
ios/RNFetchBlobRequest.m
@@ -374,7 +374,11 @@ - (void) URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCom
374
});
375
376
if (error) {
377
- errMsg = [error localizedDescription];
+ if (error.domain == NSURLErrorDomain && error.code == NSURLErrorCancelled) {
378
+ errMsg = @"task cancelled";
379
+ } else {
380
+ errMsg = [error localizedDescription];
381
+ }
382
}
383
384
if (respFile) {
0 commit comments