mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Extend reporting of curl failures (#16410)
This commit is contained in:
committed by
GitHub
parent
939ddb4813
commit
9b6040c590
@@ -141,7 +141,10 @@ namespace Http
|
||||
CURLcode curl_code = curl_easy_perform(curl);
|
||||
if (curl_code != CURLE_OK)
|
||||
{
|
||||
throw std::runtime_error("Failed to perform request");
|
||||
using namespace std::literals;
|
||||
throw std::runtime_error(
|
||||
"Failed to perform request. curl error code: "s + std::to_string(curl_code) + ": "
|
||||
+ curl_easy_strerror(curl_code));
|
||||
}
|
||||
|
||||
// gets freed by curl_easy_cleanup
|
||||
|
||||
Reference in New Issue
Block a user