„lib/chiya_web/error.ex“ ändern

This commit is contained in:
inhji 2023-07-07 10:13:55 +02:00
parent 57081d905a
commit fe2acd9f02

View file

@ -9,12 +9,4 @@ defmodule ChiyaWeb.Error do
|> put_view(ChiyaWeb.ErrorHTML) |> put_view(ChiyaWeb.ErrorHTML)
|> render("404.html", assigns) |> render("404.html", assigns)
end end
def render_error(conn, :not_found, assigns \\ []) do
conn
|> put_root_layout, {ChiyaWeb.Layouts, :root_error}
|> put_status(:not_found)
|> put_view(ChiyaWeb.ErrorHTML)
|> render("404.html", assigns)
end
end end