curl_easy_setopt: error path: log the option being set
This commit is contained in:
2
ftpfs.c
2
ftpfs.c
@@ -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)
|
||||
|
Reference in New Issue
Block a user