pinchflat/lib/pinchflat_web/controllers/error_html.ex
Kieran 14b8ecbe44
[Enhancement] Show error messages in-app for easier triage (#365)
* Added an improved error message screen with actionable details

* Added a basic 404 page

* fixed tests
2024-08-23 13:33:27 -07:00

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