Fix not handling non-200 HTTP codes when fetching feed
This commit is contained in:
parent
fce1bf6c2f
commit
64162fee92
|
@ -138,6 +138,9 @@ defmodule Frenzy.UpdateFeeds do
|
||||||
|
|
||||||
do_update_feed(feed, content_type, body)
|
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} ->
|
{:error, reason} ->
|
||||||
Logger.error("Couldn't load feed #{feed.feed_url}: #{inspect(reason)}")
|
Logger.error("Couldn't load feed #{feed.feed_url}: #{inspect(reason)}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue