Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Phoenix error reason in subject #67

Open
iaguirre88 opened this issue Oct 28, 2021 · 0 comments
Open

Improve Phoenix error reason in subject #67

iaguirre88 opened this issue Oct 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@iaguirre88
Copy link
Member

How to reproduce it:

Try to render a template that does not exist in a controller: render(conn, "index-does-not-exists.html")

Actual result:

Email subject is being set as:

BOOM error caught: %Phoenix.Template.UndefinedError{assigns: %{conn: %Plug.Conn{adapter: {Plug.Adapters.Cowboy.Conn, :...}, assigns: %{layout: {MyAppWeb.LayoutView, "app.html"}}, body_params: %{}, cookies: %{"__gads" => "ID

Expected result

BOOM error caught: Could not render "index-does-not-exists.html" for MyAppWeb.PageView
@iaguirre88 iaguirre88 added the enhancement New feature or request label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant