Skip to content

Commit

Permalink
hdnale_mistral_error() back in
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Apr 20, 2024
1 parent 7e167f8 commit cbaf9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/httr2.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
req_mistral_perform <- function(req, error_call = caller_env()) {

handle_mistral_error <- function(err) {
req <- err$req
resp <- err$resp
url <- req$url
status <- resp_status(resp)
Expand All @@ -26,4 +27,3 @@ req_mistral_perform <- function(req, error_call = caller_env()) {

req_perform(req) %!% handle_mistral_error
}

0 comments on commit cbaf9ad

Please sign in to comment.