Initial commit: there's still tons of base Phoenix boilerplate to remove, but the...
[tech-radar-editor.git] / web / views / error_view.ex
1 defmodule TechRadarEditor.ErrorView do
2 use TechRadarEditor.Web, :view
3
4 def render("404.html", _assigns) do
5 "Page not found"
6 end
7
8 def render("500.html", _assigns) do
9 "Internal server error"
10 end
11
12 # In case no render clause matches or no
13 # template is found, let's render it as 500
14 def template_not_found(_template, assigns) do
15 render "500.html", assigns
16 end
17 end