Skip to content

Remove zbus::fdo::Error conversion in server object method calls.

Ross Lannen requested to merge rosslannen/zbus:interface-error-fix into main

These changes allow any custom error created with zbus::DBusError to be used as a return type from an interface method call, instead of just the fdo well known protocol errors.

This does eliminate the usage of zbus::Error as a return type from interface methods, as it does not have a reply() method. However, before this change returning an Err(zbus::Error::...) from an interface method resulted in a panic, which I think is unexpected behavior. This removes that from happening.

This would close #155 (closed)

Edited by Ross Lannen

Merge request reports