From a02006d8ecbcdc5d71102ccfc5e6fa74a82e66a5 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 20 Aug 2024 09:35:22 +0000 Subject: [PATCH] curl_easy_setopt: error path: log the option being set --- ftpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftpfs.c b/ftpfs.c index a4ed3e3..574a9f9 100644 --- a/ftpfs.c +++ b/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)