Skip to content

x11: Improve error handling #32913

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

Merged
merged 1 commit into from
Jun 18, 2025
Merged

x11: Improve error handling #32913

merged 1 commit into from
Jun 18, 2025

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Jun 18, 2025

Continuing this work from a while back in #21079, now greatly aided by agent + sonnet 4. With this change, there are now only a few spots that explicitly panic, though errors during initialization will panic.

Motivation was this recent user panic in handle_event, figured fixing all this use of unwrap was a great use of the agent.

called Result::unwrap() on an Err value: X11 GetProperty for _NET_WM_STATE failed.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jun 18, 2025
@mgsloan mgsloan force-pushed the x11-improve-error-handling branch 2 times, most recently from d86066d to 9fef352 Compare June 18, 2025 01:20
@mgsloan mgsloan enabled auto-merge (squash) June 18, 2025 01:20
Now there are only a few spots that explicitly panic, though errors during initialization will panic.

Continuing this work from a while back in #21079, now greatly aided by agent + sonnet 4
@mgsloan mgsloan force-pushed the x11-improve-error-handling branch from 9fef352 to 9d2c218 Compare June 18, 2025 01:22
@mgsloan mgsloan merged commit aa1b2d7 into main Jun 18, 2025
20 checks passed
@mgsloan mgsloan deleted the x11-improve-error-handling branch June 18, 2025 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant