From 4fab170b9f3dcac7fa40859d6c4face53febc9c9 Mon Sep 17 00:00:00 2001 From: Maygician Date: Mon, 5 Oct 2020 23:03:17 +0700 Subject: [PATCH] longass recursion quit --- .../templates/error/{404.html.eex => 404_page.html.eex} | 0 .../templates/error/{500.html.eex => 500_page.html.eex} | 0 lp/lib/lp_web/views/error_view.ex | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename lp/lib/lp_web/templates/error/{404.html.eex => 404_page.html.eex} (100%) rename lp/lib/lp_web/templates/error/{500.html.eex => 500_page.html.eex} (100%) diff --git a/lp/lib/lp_web/templates/error/404.html.eex b/lp/lib/lp_web/templates/error/404_page.html.eex similarity index 100% rename from lp/lib/lp_web/templates/error/404.html.eex rename to lp/lib/lp_web/templates/error/404_page.html.eex diff --git a/lp/lib/lp_web/templates/error/500.html.eex b/lp/lib/lp_web/templates/error/500_page.html.eex similarity index 100% rename from lp/lib/lp_web/templates/error/500.html.eex rename to lp/lib/lp_web/templates/error/500_page.html.eex diff --git a/lp/lib/lp_web/views/error_view.ex b/lp/lib/lp_web/views/error_view.ex index 848aa65..9702a05 100644 --- a/lp/lib/lp_web/views/error_view.ex +++ b/lp/lib/lp_web/views/error_view.ex @@ -4,10 +4,10 @@ defmodule LpWeb.ErrorView do # If you want to customize a particular status code # for a certain format, you may uncomment below. def render("404.html", _assigns) do - render("404.html", %{}) + render("404_page.html", %{}) end def render("500.html", _assigns) do - render("500.html", %{}) + render("500_page.html", %{}) # "Internal Server Error" end