1
0
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:
Michał Janiszewski
2022-01-09 23:53:40 +01:00
committed by GitHub
parent 939ddb4813
commit 9b6040c590

View File

@@ -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