Skip to content

refactor: add context to D-Bus operation errors#240

Merged
cachebag merged 6 commits intocachebag:masterfrom
stoutes:refactor-dbus-error-messages
Feb 3, 2026
Merged

refactor: add context to D-Bus operation errors#240
cachebag merged 6 commits intocachebag:masterfrom
stoutes:refactor-dbus-error-messages

Conversation

@stoutes
Copy link
Contributor

@stoutes stoutes commented Feb 3, 2026

Summary

Closes #219

Wraps D-Bus errors with contextual information about which operation failed, improving debugging and error messages for users.

Changes

  • Add DbusOperation variant to ConnectionError enum
  • Refactor device.rs to provide context for device property fetches
  • Refactor connection_settings.rs to provide context for connection operations
  • Refactor vpn.rs to provide context for VPN operations
  • Refactor scan.rs to provide context for Wi-Fi scan operations

@stoutes stoutes marked this pull request as draft February 3, 2026 18:31
@stoutes stoutes marked this pull request as ready for review February 3, 2026 18:35
@cachebag cachebag added nmrs Changes attribute to nmrs refactor Change or improve code labels Feb 3, 2026
Copy link
Owner

@cachebag cachebag left a comment

Choose a reason for hiding this comment

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

What a wonderful PR. Thank you!

@cachebag cachebag merged commit eb43c7f into cachebag:master Feb 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nmrs Changes attribute to nmrs refactor Change or improve code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] Improve error messages for D-Bus failures

2 participants