]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
better wording when ceph.conf is not found 190/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Tue, 20 May 2014 15:41:00 +0000 (11:41 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Tue, 20 May 2014 16:04:17 +0000 (12:04 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/conf/ceph.py

index 795bc0b154295769af386b85fba691629336da2a..71da4fdd64d1da67a6ad092b3b94c2f6a59c796a 100644 (file)
@@ -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):