We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a8f4a commit d825f50Copy full SHA for d825f50
src/engine/client/dl_main.cpp
@@ -163,9 +163,10 @@ class CurlDownload {
163
}
164
165
bool SetOptions(Str::StringRef url) {
166
+ CURLcode err;
167
#define SETOPT(option, value) \
-if (curl_easy_setopt(request_, option, value) != CURLE_OK) { \
168
- downloadLogger.Warn("Setting " #option " failed"); \
+if ((err = curl_easy_setopt(request_, option, value)) != CURLE_OK) { \
169
+ downloadLogger.Warn("Setting " #option " failed: %s", curl_easy_strerror(err)); \
170
return false; \
171
172
0 commit comments