diff --git a/lib/frenzy/task/fetch_favicon.ex b/lib/frenzy/task/fetch_favicon.ex index e3278ad..305c858 100644 --- a/lib/frenzy/task/fetch_favicon.ex +++ b/lib/frenzy/task/fetch_favicon.ex @@ -59,7 +59,7 @@ defmodule Frenzy.Task.FetchFavicon do case Floki.find(html_tree, "link[rel=icon]") do [] -> - {:error, "No element matching link[rel=icon]"} + nil links -> links @@ -83,7 +83,7 @@ defmodule Frenzy.Task.FetchFavicon do end) |> case do nil -> - {:error, "No link[rel=icon] with type of image/png"} + nil link -> link