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

Exit instead of panicking on X11 connection loss. #2

Conversation

vorporeal
Copy link

This checks for X11Error::Connection(_) in two places where we see errors in Sentry (reading window size, xinput handling) and calls std::process::exit(1) instead of unwrapping the error.

This should have no meaningful user-visible impact (the app suddenly exits either way) but keeps these panics out of Sentry, as they're non-actionable and the application should exit when it detects loss of its connection to the X server.

@vorporeal vorporeal requested a review from alokedesai May 6, 2024 22:17
@vorporeal vorporeal merged commit 4cdd894 into warpdotdev/v0.30.x May 6, 2024
36 of 52 checks passed
@vorporeal vorporeal deleted the david/exit-instead-of-panic-on-x11-connection-loss branch May 6, 2024 22:32
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.

2 participants