Browse Source

Use a friendlier error for download interrupts. Interrupts are normal, and this error ends up directly on the UI

Cristiano Coelho 5 years ago
parent
commit
92a46a2ec1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java View File

592
                 RNFetchBlobFileResp rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
592
                 RNFetchBlobFileResp rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
593
 
593
 
594
                 if(rnFetchBlobFileResp != null && !rnFetchBlobFileResp.isDownloadComplete()){
594
                 if(rnFetchBlobFileResp != null && !rnFetchBlobFileResp.isDownloadComplete()){
595
-                    callback.invoke("RNFetchBlob failed. Download interrupted.", null);
595
+                    callback.invoke("Download interrupted.", null);
596
                 }
596
                 }
597
                 else {
597
                 else {
598
                     this.destPath = this.destPath.replace("?append=true", "");
598
                     this.destPath = this.destPath.replace("?append=true", "");