Skip to content

Commit 8cb79e5

Browse files
Properly parse error messages
This should catch most errors with the old config
1 parent 6b82260 commit 8cb79e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/dst_get_data.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ dst_get_data <- function(table,
8080

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

8686
# Get the content

0 commit comments

Comments
 (0)