We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 098fab7 commit d39c44eCopy full SHA for d39c44e
lib/pa_ess/updater.ex
@@ -166,8 +166,8 @@ defmodule PaEss.Updater do
166
http_client = Application.get_env(:realtime_signs, :http_client)
167
168
case http_client.get(url) do
169
- {:ok, response} -> response.body
170
- {:error, error} -> Logger.info("Error getting PCM file: #{error}")
+ {:ok, %HTTPoison.Response{status_code: status, body: body}} when status == 200 ->
+ body
171
end
172
173
0 commit comments