Programming Phoenix LiveView B8: Page 141: consume_uploaded_entry returns only path

On page 141:

{:ok, path} = consume_uploaded_entry(
        socket,
        entry,
        ...

I get the following error with LiveView 0.18.3:

[error] GenServer #PID<0.1760.0> terminating
** (MatchError) no match of right hand side value: "/images/live_view_upload-1667771816-586053933204069-2"

Changing to the following resolves the issue:

path = consume_uploaded_entry(
        socket,
        entry,
        ...

I tried reading through phoenix_live_view/upload.ex at v0.18.3 · phoenixframework/phoenix_live_view · GitHub but I’m not entirely sure why it’s not returning a tuple.