Skip to content

Commit 1f9dc1d

Browse files
authored
replace warning on MD5 fail with full stop with cli_abort
1 parent 5f20480 commit 1f9dc1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/java_download.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ java_download <- function(
4545
md5sum_expected <- readLines(dest_file_md5, warn = FALSE)
4646

4747
if (md5sum != md5sum_expected) {
48-
cli::cli_alert_danger("MD5 checksum mismatch. Please try downloading the file again.", .envir = environment())
48+
cli::cli_abort("MD5 checksum mismatch. Please try downloading the file again.", .envir = environment())
4949
unlink(dest_file)
5050
return(NULL)
5151
} else {

0 commit comments

Comments
 (0)