Fix not handling non-200 HTTP codes when fetching feed

This commit is contained in:
Shadowfacts 2021-09-22 14:41:29 -04:00
parent fce1bf6c2f
commit 64162fee92
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,9 @@ defmodule Frenzy.UpdateFeeds do
do_update_feed(feed, content_type, body)
{:ok, %Tesla.Env{status: status}} ->
Logger.error("Couldn't load feed #{feed.feed_url}: HTTP #{status}")
{:error, reason} ->
Logger.error("Couldn't load feed #{feed.feed_url}: #{inspect(reason)}")
end