We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cb79e5 commit c8004beCopy full SHA for c8004be
R/dst_get_data.R
@@ -79,7 +79,10 @@ dst_get_data <- function(table,
79
dst_data <- httr::GET(dst_url)
80
81
# Make sure the returned status is OK
82
- if (httr::status_code(dst_data) != 200) {
+ if (httr::status_code(dst_data) == 404) {
83
+ stop("The resource you requested have not been found.
84
+ Please make sure that the table is in `tables`")
85
+ } else if (httr::status_code(dst_data) != 200) {
86
stop(httr::content(dst_data, encoding = "UTF-8")$message)
87
}
88
0 commit comments