Skip to content

Commit

Permalink
quiet down unnecessary messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbeaudette committed Sep 6, 2024
1 parent a8ed592 commit a50d86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/seriesExtent.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ seriesExtent <- function(s, type = c('vector', 'raster'), timeout = 60,
tf <- tempfile(fileext = '.tif')

# download GeoTiff file
res <- try(curl::curl_download(url = u, destfile = tf, quiet = TRUE, handle = ch))
res <- try(curl::curl_download(url = u, destfile = tf, quiet = TRUE, handle = ch), silent = TRUE)

# trap errors
if (inherits(res, 'try-error')) {
message(res[1])
# message(res[1])
message('no data returned')
return(NULL)
}
Expand Down

0 comments on commit a50d86e

Please sign in to comment.