From: Alfredo Deza Date: Tue, 20 May 2014 15:41:00 +0000 (-0400) Subject: better wording when ceph.conf is not found X-Git-Tag: v1.5.3~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F190%2Fhead;p=ceph-deploy.git better wording when ceph.conf is not found Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/conf/ceph.py b/ceph_deploy/conf/ceph.py index 795bc0b..71da4fd 100644 --- a/ceph_deploy/conf/ceph.py +++ b/ceph_deploy/conf/ceph.py @@ -46,7 +46,9 @@ def load(args): try: f = file(path) except IOError as e: - raise exc.ConfigError(e) + raise exc.ConfigError( + "%s; has `ceph-deploy new` been run in this directory?" % e + ) else: with contextlib.closing(f): return parse(f) @@ -62,7 +64,9 @@ def load_raw(args): with open(path) as ceph_conf: return ceph_conf.read() except (IOError, OSError) as e: - raise exc.ConfigError(e) + raise exc.ConfigError( + "%s; has `ceph-deploy new` been run in this directory?" % e + ) def write_conf(cluster, conf, overwrite):