new error messages
This commit is contained in:
parent
66f82d53d3
commit
c1478bbde7
3 changed files with 29 additions and 10 deletions
|
@ -1,4 +1,14 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Not found</title>
|
||||
<link rel="preconnect" href="https://rsms.me/" />
|
||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
|
||||
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
||||
</head>
|
||||
<body>
|
||||
<.header>
|
||||
<:title>four oh four</:title>
|
||||
<:subtitle>this page went away and never came back.</:subtitle>
|
||||
<:title>Not found</:title>
|
||||
<:subtitle>This page went away and never came back.</:subtitle>
|
||||
</.header>
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +1,14 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Infernal Server Error</title>
|
||||
<link rel="preconnect" href="https://rsms.me/" />
|
||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
|
||||
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
||||
</head>
|
||||
<body>
|
||||
<.header>
|
||||
<:title>infernal server error</:title>
|
||||
<:subtitle>server got hot and went to hell.</:subtitle>
|
||||
<:title>Infernal Server Error</:title>
|
||||
<:subtitle>Server got hot and went to hell.</:subtitle>
|
||||
</.header>
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +1,9 @@
|
|||
defmodule ChiyaWeb.Error do
|
||||
import Plug.Conn, only: [put_status: 2]
|
||||
import Phoenix.Controller, only: [put_view: 2, render: 3, put_root_layout: 2]
|
||||
import Phoenix.Controller, only: [put_view: 2, render: 3]
|
||||
|
||||
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