GNOME Bugzilla – Bug 523895
Use ConnectionError for better error reporting
Last modified: 2010-09-13 13:28:24 UTC
i just compiled empathy and all (the needed modules), after playing a bit and looking at some web pages i got to correctly configure my gtalk account so that i could use it. During this process, i had to try a lot of different things, during this process empathy didn't show any error saying why it was not connecting. There should be some errors about this fact, what is wrong in the configuration provided and why it cannot connect to the servers. Also there is something very akward in the gtalk configuration options: Encryption required (which has to be off) Use old SSL (which has to be on) It cannot understand it and it is misleading.
I agree, error messages could be improved.
Empathy reports connection errors the CM gives. It can't tell more with the current tp spec.
We could display the error message, it's not localized but that's better than nothing. Maybe hide it as advanced/more explanation as Nautilus does for some error dialogs?
The only thing the CM gives to empathy is a reason code, here are possibilities: typedef enum { TP_CONNECTION_STATUS_REASON_NONE_SPECIFIED = 0, TP_CONNECTION_STATUS_REASON_REQUESTED = 1, TP_CONNECTION_STATUS_REASON_NETWORK_ERROR = 2, TP_CONNECTION_STATUS_REASON_AUTHENTICATION_FAILED = 3, TP_CONNECTION_STATUS_REASON_ENCRYPTION_ERROR = 4, TP_CONNECTION_STATUS_REASON_NAME_IN_USE = 5, TP_CONNECTION_STATUS_REASON_CERT_NOT_PROVIDED = 6, TP_CONNECTION_STATUS_REASON_CERT_UNTRUSTED = 7, TP_CONNECTION_STATUS_REASON_CERT_EXPIRED = 8, TP_CONNECTION_STATUS_REASON_CERT_NOT_ACTIVATED = 9, TP_CONNECTION_STATUS_REASON_CERT_HOSTNAME_MISMATCH = 10, TP_CONNECTION_STATUS_REASON_CERT_FINGERPRINT_MISMATCH = 11, TP_CONNECTION_STATUS_REASON_CERT_SELF_SIGNED = 12, TP_CONNECTION_STATUS_REASON_CERT_OTHER_ERROR = 13, } TpConnectionStatusReason; For each case empathy has a little translated text... But it can't do more.
Empathy could use the ConnectionError signal for better error reporting. http://telepathy.freedesktop.org/spec/org.freedesktop.Telepathy.Connection.html#org.freedesktop.Telepathy.Connection.ConnectionError
This is blocked by: https://bugs.freedesktop.org/show_bug.cgi?id=28379
Created attachment 167182 [details] [review] http://git.Collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/connection-error-523895 libempathy/empathy-utils.c | 86 ++++++++++++++++++++++++++++++++++++++++- libempathy/empathy-utils.h | 4 +- src/empathy-accounts-dialog.c | 4 +- src/empathy-main-window.c | 10 +--- 4 files changed, 93 insertions(+), 11 deletions(-)
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
*** Bug 600016 has been marked as a duplicate of this bug. ***