Skip to content

Commit

Permalink
Properly parse error messages
Browse files Browse the repository at this point in the history
This should catch most errors with the old config
  • Loading branch information
aleksanderbl29 committed Nov 28, 2024
1 parent 6b82260 commit 8cb79e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dst_get_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ dst_get_data <- function(table,

# Make sure the returned status is OK
if (httr::status_code(dst_data) != 200) {
stop(httr::content(dst_data, as = "text", encoding = "UTF-8")$message)
stop(httr::content(dst_data, encoding = "UTF-8")$message)
}

# Get the content
Expand Down

0 comments on commit 8cb79e5

Please sign in to comment.