Skip to content

Commit 8e623b3

Browse files
authored
Clarify live_session layout error (#4244)
Layouts accept atom template names, not strings.
1 parent 5824e9a commit 8e623b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/phoenix_live_view/router.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ defmodule Phoenix.LiveView.Router do
292292
raise ArgumentError, """
293293
invalid live_session :layout
294294
295-
expected a tuple with the view module and template string or atom name, got #{inspect(bad_layout)}
295+
expected a tuple with the view module and template atom name, got #{inspect(bad_layout)}
296296
"""
297297

298298
{:on_mount, on_mount}, acc ->

0 commit comments

Comments
 (0)