„lib/chiya_web/error.ex“ ändern
This commit is contained in:
parent
135d474697
commit
4f87a6811b
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,15 @@ defmodule ChiyaWeb.Error do
|
|||
|
||||
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
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue