Skip to content

x11: Improve error handling#32913

Merged
mgsloan merged 1 commit into
mainfrom
x11-improve-error-handling
Jun 18, 2025
Merged

x11: Improve error handling#32913
mgsloan merged 1 commit into
mainfrom
x11-improve-error-handling

Conversation

@mgsloan

@mgsloan mgsloan commented Jun 18, 2025

Copy link
Copy Markdown
Contributor

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