From 2269ad33858aa624d4fe12988c9f6250d0026346 Mon Sep 17 00:00:00 2001 From: Will Brown Date: Sat, 23 Nov 2024 01:00:26 -0500 Subject: [PATCH] [main.c] Add log command to curl multi error --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 328be2c..5c951ed 100644 --- a/main.c +++ b/main.c @@ -109,6 +109,7 @@ static void timer_retrieve_feeds(struct discord *client, struct discord_timer *t curl_easy_setopt(feed_handle, CURLOPT_PRIVATE, &feed_list[i]); CURLMcode mc = curl_multi_add_handle(multi, feed_handle); if (mc) { + log_error("Unable to retrieve feed list: %s", curl_multi_strerror(mc)); curl_easy_cleanup(feed_handle); fclose(feed_list[i].fp); free(feed_list[i].buf);