„lib/chiya_web/error.ex“ ändern
This commit is contained in:
parent
d0054fcd18
commit
bc6484d377
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ defmodule ChiyaWeb.Error do
|
|||
|
||||
def render_error(conn, :not_found, assigns \\ []) do
|
||||
conn
|
||||
|> put_root_layout(html: {ChiyaWeb.Layouts, :root_error})
|
||||
|> put_status(:not_found)
|
||||
|> put_view(ChiyaWeb.ErrorHTML)
|
||||
|> render("404.html", assigns)
|
||||
|
|
Loading…
Reference in a new issue