From: Dan Mick Date: Thu, 6 Jun 2013 20:57:17 +0000 (-0700) Subject: ceph: improve error reporting on failure to connect to cluster X-Git-Tag: v0.65~136^2^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f7cac32803e87a5d4da90dc51239d976bcf332a;p=ceph.git ceph: improve error reporting on failure to connect to cluster Signed-off-by: Dan Mick --- diff --git a/src/ceph b/src/ceph index bf5b799baf7..adf1ea64c27 100755 --- a/src/ceph +++ b/src/ceph @@ -1375,10 +1375,10 @@ def main(): try: cluster_handle.connect() except KeyboardInterrupt: - print >> sys.stderr, "connection aborted" + print >> sys.stderr, 'Cluster connection aborted' return 1 - except: - print >> sys.stderr, "connection to cluster timed out" + except Exception as e: + print >> sys.stderr, 'Error connecting to cluster: {0}'.format(e) return 1 if parsed_args.help or parsed_args.help_all: