Add default HTTP response handler
This commit is contained in:
parent
bd896641df
commit
27dd2c4a8e
|
@ -101,6 +101,9 @@ defmodule Frenzy.UpdateFeeds do
|
|||
{:ok, feed} = Repo.update(changeset)
|
||||
update_feed(feed)
|
||||
|
||||
{:ok, %HTTPoison.Response{} = response} ->
|
||||
Logger.error("Couldn't load RSS feed #{feed.feed_url}, got unexpected response: #{inspect(response)}")
|
||||
|
||||
{:error, %HTTPoison.Error{reason: reason}} ->
|
||||
Logger.error("Couldn't load RSS feed #{feed.feed_url}: #{inspect(reason)}")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue