Explorar el Código

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

Cristiano Coelho hace 5 años
padre
commit
92a46a2ec1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java Ver fichero

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