-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom class for gcs_get_object() 40x errors #153
Comments
|
This looks like something that would be best done in |
For now its implemented here via # https://adv-r.hadley.nz/conditions.html
abort_http <- function(status_code, msg = NULL){
rlang::abort(paste0("http_",status_code),
message = paste(status_code, "error when attempting HTTP -", msg)
)
} It would be better in googleAuthR though |
This was done in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run
tryCatch(googleCloudStorageR::gcs_get_object(...), error = function(condition_object) browser())
, on an object that does not exist, I find thatcondition_object
has classc("simpleError", "error", "condition")
. Would it be possible to throw a more specific error class for HTML error codes 400-404? For ropensci/targets#722, this would eliminate confusion with other kinds of errors intargets:::gcp_gcs_head()
.The text was updated successfully, but these errors were encountered: