curl_easy_setopt: error path: log the option being set

This commit is contained in:
2024-08-20 09:35:22 +00:00
parent 3d81b832e5
commit a02006d8ec

View File

@@ -262,7 +262,7 @@ static size_t read_data(void *ptr, size_t size, size_t nmemb, void *data) {
do {\
CURLcode res = curl_easy_setopt(handle, option, __VA_ARGS__);\
if (res != CURLE_OK) {\
fprintf(stderr, "Error setting curl: %s\n", error_buf);\
fprintf(stderr, "Error setting curl option %d: %s\n", option, error_buf);\
exit(1);\
}\
}while(0)