Skip to content

Commit

Permalink
added error output
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Nov 14, 2023
1 parent 3c01956 commit 41d974b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/scopus_search.R
Expand Up @@ -100,6 +100,10 @@ scopus_search <- function(
r$url = httr::build_url(parsed_url)
print(r)
}
if (httr::status_code(r) >= 400) {
print("Error:")
print(httr::content(r))
}
stop_for_status(r)
cr = content(r)$`search-results`
L = list(get_statement = r, content = cr)
Expand Down

0 comments on commit 41d974b

Please sign in to comment.