Inform user about not being able to connect to a server due to missing tls/ssl authentication method
By default gajim is forbidden to connect to plain (non-tls/ssl) servers. It took me some time to figure out why I couldn't connect to my server.
Related issue: #8559 (closed)
Found the issue by running gajim via python -OOt gajim.py --verbose
:
...
03/30/2017 21:06:08 (I) nbxmpp.client_nb While connecting with type = "tls": TLS unsupported by remote server
03/30/2017 21:06:08 (I) gajim.c.connection Connecting to next type beacuse desired is tls and returned is plain
03/30/2017 21:06:08 (D) gajim.c.connection Connection to next host
03/30/2017 21:06:08 (D) gajim.c.connection Out of hosts, giving up connecting to XMPP-server-bot
...
I believe that having a more detailed UI error message rather than "Unable to connect to server ..." is very important in this case, since non-encrypted connections mostly exist on self-hosted servers used for various bots and setting them up can be a pain in the neck when the client's not reporting why exactly the connection has not been established.