Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor error handling. #3470

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Refactor error handling. #3470

merged 2 commits into from
Oct 15, 2024

Conversation

chrismccord
Copy link
Member

@chrismccord chrismccord commented Oct 15, 2024

For plug_status errors during connected mount, we now sign an instruction within an cookie to instruct the dead render to trigger the plug error pipeline.

In dev, this will show the plug debugger with stacktrace. In prod, this will show the 400..500 error pages.

For child LV's, we now attempt to remount a failed child up to a configurable maximum, then failsafe keep the child in a dead state.

Borrows from #3280
Closes #3280
Closes #3257

chrismccord and others added 2 commits October 15, 2024 15:31
For plug_status errors during connected mount, we now sign an instruction
within an cookie to instruct the dead render to trigger the plug error pipeline.

In dev, this will show the plug debugger with stacktrace. In prod, this will
show the 400..50 error pages.

For child LV's, we now attempt to remount a failed child up to a configurable
maximum, then failsafe keep the child in a dead state.

Co-authored-by: Steffen Deusch <steffen@deusch.me>
@chrismccord chrismccord merged commit 83dd3f4 into main Oct 15, 2024
2 of 12 checks passed
@chrismccord chrismccord deleted the cm-refactor-errors branch October 15, 2024 19:36
exception: exception_mod,
stack: stack
})

GenServer.reply(from, {:error, %{reason: "reload", status: status, token: token}})
{:stop, :shutdown, :no_state}
else
IO.inspect({view, connect_params})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you forgot that one

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lacking a way for a nested LiveView to crash its parent in mount/first render when the two are linked
2 participants