Skip to content

Commit

Permalink
Update error message shown when consuming a stream - fixes #2924 (#2925)
Browse files Browse the repository at this point in the history
  • Loading branch information
io2 authored Nov 21, 2023
1 parent cb7db8b commit 2871138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_live_view/live_stream.ex
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ defmodule Phoenix.LiveView.LiveStream do
raise ArgumentError, """
streams can only be consumed directly by a for comprehension.
If you are attempting to consume the stream ahead of time, such as with
`Enum.with_index(@stream.#{stream.name})`, you need to place the relevant information
`Enum.with_index(@streams.#{stream.name})`, you need to place the relevant information
within the stream items instead.
"""
end
Expand Down

0 comments on commit 2871138

Please sign in to comment.