mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 18:18:55 +00:00
13 lines
373 B
Elixir
13 lines
373 B
Elixir
defmodule API.ErrorView do
|
|
def render("500.json", _assigns) do
|
|
%{errors: %{detail: "internal_error"}}
|
|
end
|
|
|
|
# By default, Phoenix returns the status message from
|
|
# the template name. For example, "404.json" becomes
|
|
# "Not Found".
|
|
def render(template, _assigns) do
|
|
%{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}}
|
|
end
|
|
end
|