From dce28bd05c02da0e403e83d78dcd47dd8a171593 Mon Sep 17 00:00:00 2001 From: Nati CT Date: Thu, 8 May 2014 11:03:01 +0300 Subject: [PATCH] Changed connection error messages to be more informative --- cqlengine/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cqlengine/connection.py b/cqlengine/connection.py index 081f167f..1274e3e7 100644 --- a/cqlengine/connection.py +++ b/cqlengine/connection.py @@ -94,9 +94,9 @@ def setup( try: port = int(host[1]) except ValueError: - raise CQLConnectionError("Can't parse {}".format(''.join(host))) + raise CQLConnectionError("Can't parse port as int {}".format(':'.join(host))) 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))