Right now, we don't actually return the errors returned by the CredentialService to the D-Bus caller; we show the error in the UI, then the user closes the window, which causes cancellation. Most errors at this point would just map to NotAllowedError, but CredentialExcluded -> InvalidStateError is never given to the caller.
We need to return real errors to the caller, while still allowing the UI to acknowledge the error if necessary.
Right now, we don't actually return the errors returned by the
CredentialServiceto the D-Bus caller; we show the error in the UI, then the user closes the window, which causes cancellation. Most errors at this point would just map to NotAllowedError, but CredentialExcluded -> InvalidStateError is never given to the caller.We need to return real errors to the caller, while still allowing the UI to acknowledge the error if necessary.