Commit a42da8f3 authored by minibikini's avatar minibikini

Fix response

parent c2a589d9
......@@ -66,7 +66,7 @@ defp get_media(conn, {:static_dir, directory}, _, opts) do
conn
else
conn
|> render_error(:not_found, "Not found")
|> send_resp(:not_found, dgettext("errors", "Not found"))
|> halt()
end
end
......@@ -86,7 +86,7 @@ defp get_media(conn, unknown, _, _) do
Logger.error("#{__MODULE__}: Unknown get startegy: #{inspect(unknown)}")
conn
|> render_error(:internal_server_error, "Internal Error")
|> send_resp(:internal_server_error, dgettext("errors", "Internal Error"))
|> halt()
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment