Skip to content

Commit

Permalink
Merge pull request #152 from gesistsa/error_msg
Browse files Browse the repository at this point in the history
Error msg update
  • Loading branch information
schochastics authored Jan 8, 2024
2 parents e46320e + b8c6eab commit 4892963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ make_get_request <- function(token, path, params = list(), instance = NULL, anon

status_code <- httr::status_code(request_results)
if (!status_code %in% c(200, 429)) {
stop(paste("something went wrong. Status code:", status_code), call. = FALSE)
stop(paste("Unable to make the request. Status Code: ", status_code), call. = FALSE)
} else if (status_code == 429) {
message("too many requests. Sleeping for 5 minutes")
Sys.sleep(60 * 5)
Expand Down

0 comments on commit 4892963

Please sign in to comment.