Skip to content

Commit

Permalink
More debug information for worldclim
Browse files Browse the repository at this point in the history
  • Loading branch information
dramanica committed Jun 27, 2024
1 parent 8ae609e commit cb97548
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/download_worldclim_present.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ download_worldclim_present <- function(dataset, bio_var, filename) {
time_bp = FALSE)
if (!edit_res){
file.remove(vrt_path)
stop("something went wrong setting up this dataset", "\n the dataset will need downloading again")
stop("something went wrong setting up this dataset (", vrt_path," could not be created correctly)",
"\n the dataset will need downloading again")
}
}
if (!file.exists(filename)){
stop("something went wrong setting up this dataset", "\n the dataset will need downloading again")
stop("something went wrong setting up this dataset (", filename," is missing)",
"\n the dataset will need downloading again")
}
return(TRUE)

Expand Down

0 comments on commit cb97548

Please sign in to comment.