Skip to content

Commit

Permalink
fix(SearchController): Add case match for failed analytics click (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 authored May 15, 2024
1 parent 68125a5 commit b6eb50d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dotcom_web/controllers/search_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ defmodule DotcomWeb.SearchController do

{:error, %HTTPoison.Error{reason: reason}} ->
%{message: "error", reason: reason}

{:error, %{reason: reason}} ->
%{message: "error", reason: reason}
end

json(conn, response)
Expand Down

0 comments on commit b6eb50d

Please sign in to comment.