Skip to content

Commit 7fc3ba9

Browse files
committed
Update pattern match in controller template
1 parent 6165d4e commit 7fc3ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

priv/templates/common/phx.gen.html/controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
1111
case <%= inspect context.alias %>.paginate_<%= schema.plural %>(params) do
1212
{:ok, assigns} ->
1313
render(conn, "index.html", assigns)
14-
error ->
14+
{:error, error} ->
1515
conn
1616
|> put_flash(:error, "There was an error rendering <%= schema.human_plural %>. #{inspect(error)}")
1717
|> redirect(to: Routes.<%= schema.route_helper %>_path(conn, :index))

0 commit comments

Comments
 (0)