mirror of
https://github.com/kieraneglin/pinchflat.git
synced 2026-01-24 02:45:54 +00:00
* Added an improved error message screen with actionable details * Added a basic 404 page * fixed tests
12 lines
333 B
Elixir
12 lines
333 B
Elixir
defmodule PinchflatWeb.ErrorHTML do
|
|
use PinchflatWeb, :html
|
|
|
|
embed_templates "error_html/*"
|
|
|
|
# The default is to render a plain text page based on
|
|
# the template name. For example, "404.html" becomes
|
|
# "Not Found".
|
|
def render(template, _assigns) do
|
|
Phoenix.Controller.status_message_from_template(template)
|
|
end
|
|
end
|