Changed connection error messages to be more informative
This commit is contained in:
@@ -94,9 +94,9 @@ def setup(
|
|||||||
try:
|
try:
|
||||||
port = int(host[1])
|
port = int(host[1])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise CQLConnectionError("Can't parse {}".format(''.join(host)))
|
raise CQLConnectionError("Can't parse port as int {}".format(':'.join(host)))
|
||||||
else:
|
else:
|
||||||
raise CQLConnectionError("Can't parse {}".format(''.join(host)))
|
raise CQLConnectionError("Can't parse host string {}".format(':'.join(host)))
|
||||||
|
|
||||||
_hosts.append(Host(host[0], port))
|
_hosts.append(Host(host[0], port))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user