Current section
Files
Jump to
Current section
Files
lib/plato_web/controllers/error_html.ex
defmodule PlatoWeb.ErrorHTML do
@moduledoc """
This module is invoked by the endpoint in case of errors on HTML requests.
"""
# 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