„lib/chiya_web/error.ex“ ändern

This commit is contained in:
inhji 2023-07-07 10:21:32 +02:00
parent bc6484d377
commit 9b5a9d18a8

View file

@ -2,8 +2,6 @@ defmodule ChiyaWeb.Error do
import Plug.Conn, only: [put_status: 2] import Plug.Conn, only: [put_status: 2]
import Phoenix.Controller, only: [put_view: 2, render: 3] import Phoenix.Controller, only: [put_view: 2, render: 3]
plug :put_root_layout, {ChiyaWeb.Layouts, :root_error}
def render_error(conn, :not_found, assigns \\ []) do def render_error(conn, :not_found, assigns \\ []) do
conn conn
|> put_root_layout(html: {ChiyaWeb.Layouts, :root_error}) |> put_root_layout(html: {ChiyaWeb.Layouts, :root_error})