Skip to content

Commit 92a46a2

Browse files
committed
Use a friendlier error for download interrupts. Interrupts are normal, and this error ends up directly on the UI
1 parent 8ee728e commit 92a46a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ private void done(Response resp) {
592592
RNFetchBlobFileResp rnFetchBlobFileResp = (RNFetchBlobFileResp) responseBody;
593593

594594
if(rnFetchBlobFileResp != null && !rnFetchBlobFileResp.isDownloadComplete()){
595-
callback.invoke("RNFetchBlob failed. Download interrupted.", null);
595+
callback.invoke("Download interrupted.", null);
596596
}
597597
else {
598598
this.destPath = this.destPath.replace("?append=true", "");

0 commit comments

Comments
 (0)