| 1 |
:-( |
defmodule DaProductAppWeb.ErrorHTML do |
| 2 |
|
@moduledoc """ |
| 3 |
|
This module is invoked by your endpoint in case of errors on HTML requests. |
| 4 |
|
|
| 5 |
|
See config/config.exs. |
| 6 |
|
""" |
| 7 |
|
use DaProductAppWeb, :html |
| 8 |
|
|
| 9 |
|
# If you want to customize your error pages, |
| 10 |
|
# uncomment the embed_templates/1 call below |
| 11 |
|
# and add pages to the error directory: |
| 12 |
|
# |
| 13 |
|
# * lib/da_product_app_web/controllers/error_html/404.html.heex |
| 14 |
|
# * lib/da_product_app_web/controllers/error_html/500.html.heex |
| 15 |
|
# |
| 16 |
|
# embed_templates "error_html/*" |
| 17 |
|
|
| 18 |
|
# The default is to render a plain text page based on |
| 19 |
|
# the template name. For example, "404.html" becomes |
| 20 |
|
# "Not Found". |
| 21 |
|
def render(template, _assigns) do |
| 22 |
2 |
Phoenix.Controller.status_message_from_template(template) |
| 23 |
|
end |
| 24 |
|
end |