daily-tracker

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

error_html.ex (746B)


      1 defmodule DailyTrackerWeb.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 DailyTrackerWeb, :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/daily_tracker_web/controllers/error_html/404.html.heex
     14   #   * lib/daily_tracker_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     Phoenix.Controller.status_message_from_template(template)
     23   end
     24 end