Skip to content

Improve Phoenix error reason in subject #67

@iaguirre88

Description

@iaguirre88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions