Add smarter TpAccount API to get the connection error
@gdesmott
Submitted by Guillaume Desmottes Assigned to Telepathy bugs list
Description
<smcv>
cassidy: if you have no idea what the D-Bus error means, you want to interpret the reason
<smcv>
cassidy: e.g. ("com.nokia.Hovercraft.FullOfEels", CSR_AUTHENTICATION_FAILED) should come out as "Authentication failed" not as whatever your default is
<smcv>
cassidy: (which is presumably still NetworkError :-P )
<smcv>
cassidy: what you probably actually want is for TpAccount to grow logic analogous to tp_connection_status_changed_cb
<smcv>
cassidy: so it gives you a GError in a domain you've registered as an extension, or in TP_ERRORS (based on the reason code) if the D-Bus error isn't in a domain that you can be expected to understand