Skip to content

ErrorName now an independent type

Zeeshan Ali Khan requested to merge zeenix/zbus:error-name-type into main

Although its identitical to InterfaceName, using a type alias means:

  1. The debug impl shows InterfaceName, making it harder to read the debug output.
  2. User gets Error::InvalidInterfaceName error instead of Error::InvalidErrorName.

Strictly speaking, this is an API break but:

  1. It's doubtful this will break any code out there. If someone has been using these types interchangably, this breakage would be a good nudge for them to not do that anymore.
  2. Given the benefits I mentioned above, I don't feel bad about such minor breakage in the same major release.
Edited by Zeeshan Ali Khan

Merge request reports

Loading