ome / omero-gateway-java

Gradle project containing OMERO Java Client Library
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
1 stars 9 forks source link

Add nicer message for failure to connect to server. #42

Closed mtbc closed 3 years ago

mtbc commented 3 years ago

This should provide a nicer message for when one connects to a server that simply isn't listening.

dominikl commented 3 years ago

How can I trigger this exception? Tried with invalid hostname and port via omero-downloader. With port I got cannot log in to server: null (looks like that triggered the SocketException), and hostname triggered the DNSException.

mtbc commented 3 years ago

Maybe try "localhost" when you don't have OMERO running at all.

dominikl commented 3 years ago

Of course, ta. cannot log in to server: Can't connect to localhost 👍
Good to merge from my point of view.