Closed offa closed 1 year ago
INVALID_URL_FORMAT errors don't contain an error message but an empty string.
INVALID_URL_FORMAT
const auto response = cpr::Get(cpr::Url{"an invalid url"}); if (const auto error = response.error; error) { std::cout << "<" << static_cast<int>(response.error.code) << ">: <" << error.message << ">\n"; }
<5>: <>
(5 is ErrorCode::INVALID_URL_FORMAT)
ErrorCode::INVALID_URL_FORMAT
No response
conan
Thanks for reporting but there is nothing we can do about it since this what we get from curl.
Description
INVALID_URL_FORMAT
errors don't contain an error message but an empty string.Example/How to Reproduce
Output:
(5 is
ErrorCode::INVALID_URL_FORMAT
)Possible Fix
No response
Where did you get it from?
conan
Additional Context/Your Environment