diff --git a/lp/lib/lp_web/templates/error/404.html.eex b/lp/lib/lp_web/templates/error/404.html.eex new file mode 100644 index 0000000..79c4fa5 --- /dev/null +++ b/lp/lib/lp_web/templates/error/404.html.eex @@ -0,0 +1 @@ +
There was an error. Sadly.
diff --git a/lp/lib/lp_web/views/error_view.ex b/lp/lib/lp_web/views/error_view.ex index 272cbac..848aa65 100644 --- a/lp/lib/lp_web/views/error_view.ex +++ b/lp/lib/lp_web/views/error_view.ex @@ -3,9 +3,13 @@ defmodule LpWeb.ErrorView do # If you want to customize a particular status code # for a certain format, you may uncomment below. - # def render("500.html", _assigns) do - # "Internal Server Error" - # end + def render("404.html", _assigns) do + render("404.html", %{}) + end + def render("500.html", _assigns) do + render("500.html", %{}) + # "Internal Server Error" + end # By default, Phoenix returns the status message from # the template name. For example, "404.html" becomes