commit 4c03fcd97aa30453718144eb296aa17173ab9c65
parent 6dbbd0d33dfbdf2d00a289cd123e2a60131e0102
Author: citbl <citbl@citbl.org>
Date: Tue, 28 Oct 2025 21:10:41 +1000
resilience
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/feeds.c b/src/feeds.c
@@ -55,6 +55,7 @@ load_app(char* contents_feeds)
http_blob* httpblob = (http_blob*)ret;
feed_t* feed = (feed_t*)ecalloc(1, sizeof(feed_t));
+ if (!httpblob) continue;
parse_feed(feed, lines[i], httpblob->data);
populate_feed(feed);
free(lines[i]);
diff --git a/src/http.c b/src/http.c
@@ -48,7 +48,7 @@ threaded_fetch(void* url)
CURLcode res = curl_easy_perform(curl);
if (res != CURLE_OK) {
fprintf(stderr,
- "curl failed for %s: %s\n",
+ "\nFAILED loading URL: %s -- %s\n\n",
(char*)url,
curl_errbuf[0] ? curl_errbuf : curl_easy_strerror(res));
free(blob->data);