Skip to content

Instantly share code, notes, and snippets.

@pierreabreup
Created May 11, 2020 22:07
Show Gist options
  • Save pierreabreup/a778be1a232715b89eeb182437904a7d to your computer and use it in GitHub Desktop.
Save pierreabreup/a778be1a232715b89eeb182437904a7d to your computer and use it in GitHub Desktop.
defmodule MyAppWeb.ErrorView do
use MyAppWeb, :view
def template_not_found(template, _assigns) do
%{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment