curl
curl copied to clipboard
`curl_url_parse()` doesn't give very helpful errors
e.g.
curl::curl_parse_url("abc")
#> Error in curl::curl_parse_url("abc"): Failed to parse URL: Bad scheme
Created on 2025-01-08 with reprex v2.1.0
Would be useful to see the scheme or even maybe the full url here?
We can't give you the scheme, because we failed to parse it. So curl can't make any sense of it. We could echo the full input url string in the error message if that is helpful.
Yeah, that's what I've added temporary code in httr2 to do. But it feels like that would be most helpful in curl.